Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Quick description
See issue #1108 for more details. In summary, I realized that the
skip_b0_check
option forces theb0_threshold
to become the minimal b-value, which doesn't work in some cases. Many scripts used thecheck_b0_threshold
function without saving the outputted threshold, because we did not want to overwrite theb0_threshold
. However, the warning message fromcheck_b0_threshold
withskip_b0_check
still said that theb0_threshold
was changed to the minimal b-value, which was false in this case.A simple fix was to add a
overwrite_with_min
option tocheck_b0_threshold
, so that if it is False, the warning says that the script will continue without b0s, as it does. I added thisoverwrite_with_min=False
option to all scripts that hadwill_overwrite_with_min=False
when callingadd_skip_b0_check_arg
. I also changed the help when thiswill_overwrite_with_min
option is False (it was not doing what was said).Closes #1108
...
Type of change
Check the relevant options.
Provide data, screenshots, command line to test (if relevant)
...
Checklist