Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH: Add DWI shell detection utils #198

Merged
merged 2 commits into from
Jun 13, 2024

Conversation

jhlegarreta
Copy link
Collaborator

Add DWI shell detection utils.

Add the corresponding tests.

@jhlegarreta jhlegarreta force-pushed the AddShellDetectionUtils branch 2 times, most recently from f971213 to 78cd5d6 Compare May 28, 2024 23:32
@jhlegarreta
Copy link
Collaborator Author

@oesteban We may need this at some point. Ready to be merged.

Copy link
Member

@oesteban oesteban left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left a question. It may not make sense, but I believe it does.

src/eddymotion/model/dmri_utils.py Outdated Show resolved Hide resolved
src/eddymotion/model/tests/test_dmri_utils.py Outdated Show resolved Hide resolved
oesteban
oesteban previously approved these changes Jun 8, 2024
src/eddymotion/model/dmri_utils.py Outdated Show resolved Hide resolved
src/eddymotion/model/dmri_utils.py Outdated Show resolved Hide resolved
src/eddymotion/model/dmri_utils.py Outdated Show resolved Hide resolved
src/eddymotion/model/dmri_utils.py Outdated Show resolved Hide resolved
Add DWI shell detection utils.

Add the corresponding tests and some actual test data files.
src/eddymotion/model/dmri_utils.py Outdated Show resolved Hide resolved
src/eddymotion/model/dmri_utils.py Outdated Show resolved Hide resolved
src/eddymotion/model/dmri_utils.py Outdated Show resolved Hide resolved
src/eddymotion/model/dmri_utils.py Show resolved Hide resolved
src/eddymotion/model/dmri_utils.py Outdated Show resolved Hide resolved
src/eddymotion/model/dmri_utils.py Outdated Show resolved Hide resolved
src/eddymotion/model/dmri_utils.py Show resolved Hide resolved
src/eddymotion/model/dmri_utils.py Outdated Show resolved Hide resolved
src/eddymotion/model/dmri_utils.py Show resolved Hide resolved
src/eddymotion/model/dmri_utils.py Show resolved Hide resolved
src/eddymotion/model/tests/test_dmri_utils.py Outdated Show resolved Hide resolved
Prefer capping b-values to a sensible maximum default value to make the binning strategy more robust.

Raise a `ValueError` users when no actual shells are found.

Return the median estimated b-vals for each bin.

Co-authored-by: Oscar Esteban <[email protected]>
@oesteban
Copy link
Member

I think this is ready! thanks a ton! Please merge if you think all is okay :)

@jhlegarreta jhlegarreta merged commit d087406 into nipreps:main Jun 13, 2024
6 checks passed
@jhlegarreta jhlegarreta deleted the AddShellDetectionUtils branch June 13, 2024 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants