Skip to content

dwi2response manual: avoid checking and calculating a brain mask#2373

Merged
Lestropie merged 9 commits intomasterfrom
dwi2response_manual
Nov 7, 2021
Merged

dwi2response manual: avoid checking and calculating a brain mask#2373
Lestropie merged 9 commits intomasterfrom
dwi2response_manual

Conversation

@bjeurissen
Copy link
Member

@bjeurissen bjeurissen commented Sep 10, 2021

For the manual response function estimation, a brain mask is not needed or supported. However, currently, a brain mask is always calculated if one is not provided. This is unnecessary and can also lead to crashes whenever dwi2mask fails (e.g. exotic data, simulations, ... exactly the use-cases where you would use manual response estimation).

For the manual response function estimation, a brain mask is not needed or supported. However, currently, a brain mask is always calculated if one is not provided. This is unnecessary and can also lead to crashes whenever dwi2mask fails (e.g. exotic data, simulations, ... exactly the use-cases where you would use manual response estimation).
@bjeurissen
Copy link
Member Author

bjeurissen commented Sep 10, 2021

Not sure why building fails on macos, as I did not make any changes to the C++ code. Looks like we would need b379fc8 after all?

@Lestropie
Copy link
Member

Testing string equivalence of the selected algorithm within dwi2response is not the ideal solution from a code hierarchy perspective. It would be preferable for algorithms to define a function that returns a value indicating whether or not that particular algorithm wishes for a brain mask to be defined / calculated for it.

@bjeurissen
Copy link
Member Author

bjeurissen commented Sep 20, 2021

Testing string equivalence of the selected algorithm within dwi2response is not the ideal solution from a code hierarchy perspective. It would be preferable for algorithms to define a function that returns a value indicating whether or not that particular algorithm wishes for a brain mask to be defined / calculated for it.

Agreed! Latest commit should fix that.

Copy link
Member

@jdtournier jdtournier left a comment

Choose a reason for hiding this comment

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

Seems OK to me. Ready to merge, @Lestropie?

@Lestropie Lestropie merged commit f633a02 into master Nov 7, 2021
@Lestropie Lestropie deleted the dwi2response_manual branch November 7, 2021 04:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants