Skip to content

FIX: Improve output handling in DWIDenoise and DWIBiasCorrect #2978

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

Merged
merged 7 commits into from
Jul 30, 2019

Conversation

josephmje
Copy link
Contributor

@josephmje josephmje commented Jul 25, 2019

Summary

Fixes #2975 .

List of changes proposed in this PR (pull-request)

  • DWIDenoise
    • use name_template to auto-generate noise file
    • remove _list_outputs() method
  • MRDeGibbs
    • remove use_default=True so that values can be changed
  • DWIBiasCorrect
    • recycle grad_file and grad_fsl from MRTrix3Base spec and add xor since arguments are mutually exclusive
    • remove min_version=5.0.10 since the Mrtrix3 version is being checked, not FSL
    • remove _list_outputs() method

Acknowledgment

  • (Mandatory) I acknowledge that this contribution will be available under the Apache 2 license.

@josephmje
Copy link
Contributor Author

@oesteban I was wondering if I could get your feedback on this fix? Thank you!

Copy link
Member

@effigies effigies left a comment

Choose a reason for hiding this comment

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

Overall looks good. Some comments.

Also:

remove use_default=True so that values can be changed

usedefault=True does not prevent overriding.

@codecov-io
Copy link

Codecov Report

Merging #2978 into master will increase coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2978      +/-   ##
==========================================
+ Coverage   67.61%   67.62%   +0.01%     
==========================================
  Files         344      344              
  Lines       43798    43782      -16     
  Branches     5471     5469       -2     
==========================================
- Hits        29612    29606       -6     
+ Misses      13475    13465      -10     
  Partials      711      711
Flag Coverage Δ
#smoketests 50.38% <ø> (ø) ⬆️
#unittests 65.04% <100%> (+0.01%) ⬆️
Impacted Files Coverage Δ
nipype/interfaces/mrtrix3/base.py 56.36% <ø> (ø) ⬆️
nipype/interfaces/mrtrix3/preprocess.py 86.59% <100%> (+6.95%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3454c9a...91c5c84. Read the comment docs.

Copy link
Member

@effigies effigies left a comment

Choose a reason for hiding this comment

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

It's usedefault, not use_default. And one other comment.

@effigies effigies added this to the 1.2.1 milestone Jul 26, 2019
Copy link
Member

@effigies effigies left a comment

Choose a reason for hiding this comment

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

LGTM.

@effigies effigies changed the title FIX: fix broken dwidenoise and dwibiascorrect specs FIX: Improve output handling in DWIDenoise and DWIBiasCorrect Jul 26, 2019
@oesteban oesteban merged commit 6f2f94f into nipy:master Jul 30, 2019
@josephmje josephmje deleted the mrtrix_fix branch August 30, 2019 20:36
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.

New version 1.2.0 generates str error with mrTrix denoise, biascorrect
4 participants