Skip to content

Conversation

GalKepler
Copy link
Contributor

Summary

The MRConvert interface now includes some additional available options allowed by the original MRTrix3's CLI.

Fixes #3473.

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

The interface now includes the following:

  • clear_property
  • copy_properties
  • datatype
  • outputs of gradient files in MRTrix3's format (and FSL's)
@codecov
Copy link

codecov bot commented May 13, 2022

Codecov Report

Base: 65.29% // Head: 65.28% // Decreases project coverage by -0.00% ⚠️

Coverage data is based on head (f4db097) compared to base (bf48f77).
Patch coverage: 58.33% of modified lines in pull request are covered.

Additional details and impacted files
@@ Coverage Diff @@ ## master #3474 +/- ## ========================================== - Coverage 65.29% 65.28% -0.01%  ========================================== Files 309 309 Lines 40873 40884 +11 Branches 5380 5382 +2 ========================================== + Hits 26687 26693 +6  - Misses 13108 13113 +5  Partials 1078 1078 
Flag Coverage Δ
unittests 65.03% <58.33%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
nipype/interfaces/mrtrix3/utils.py 79.13% <58.33%> (-0.93%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

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.

Commented on what I think are the new bits. In the future, can you separate out style changes from the main focus of the PR? It makes it easier to review.

Comment on lines +788 to +794
desc="""specify output image data type.
Valid choices are: float32, float32le, float32be, float64,
float64le, float64be, int64, uint64, int64le, uint64le,
int64be, uint64be, int32, uint32, int32le, uint32le,
int32be, uint32be, int16, uint16, int16le, uint16le,
int16be, uint16be, cfloat32, cfloat32le, cfloat32be,
cfloat64, cfloat64le, cfloat64be, int8, uint8, bit.""",
Copy link
Member

Choose a reason for hiding this comment

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

Enumerations should be added to the docstrings. Did you try building the docs locally and not see it?

Suggested change
desc="""specify output image data type.
Valid choices are: float32, float32le, float32be, float64,
float64le, float64be, int64, uint64, int64le, uint64le,
int64be, uint64be, int32, uint32, int32le, uint32le,
int32be, uint32be, int16, uint16, int16le, uint16le,
int16be, uint16be, cfloat32, cfloat32le, cfloat32be,
cfloat64, cfloat64le, cfloat64be, int8, uint8, bit.""",
desc="output image data type",
Comment on lines +802 to +803
File("grad.bvecs", desc="bvecs"),
File("grad.bvals", desc="bvals"),
Copy link
Member

Choose a reason for hiding this comment

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

I'm pretty sure this metadata will have no effect. If you want to specify these things, I would add it to the desc for the entire trait.

Suggested change
File("grad.bvecs", desc="bvecs"),
File("grad.bvals", desc="bvals"),
File, File
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.

I still think my previous suggestions are good, also.

ends_only = traits.Bool(
argstr="-ends_only", desc="only map the streamline" " endpoints to the image"
argstr="-ends_only",
desc="only map the streamline" " endpoints to the image",
Copy link
Member

Choose a reason for hiding this comment

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

While we're modifying this line...

Suggested change
desc="only map the streamline" " endpoints to the image",
desc="only map the streamline endpoints to the image",
@GalKepler GalKepler closed this by deleting the head repository Jul 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants