Skip to content
Prev Previous commit
Next Next commit
doc: add test [skip-ci]
  • Loading branch information
mgxd committed Mar 19, 2018
commit 7ba24f12eae8151e009e0de588350ac1943071d0
1 change: 1 addition & 0 deletions nipype/interfaces/dcm2nii.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,7 @@ class Dcm2niix(CommandLine):
>>> flags = '-'.join([val.strip() + ' ' for val in sorted(' '.join(converter.cmdline.split()[1:-1]).split('-'))])
>>> flags
' -5 -b y -m n -o ds005 -s n -t n -v n -x n -z y '
Copy link
Member

Choose a reason for hiding this comment

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

What is the point of this flags line, if we're already showing cmdline?

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm fine to remove this as well, just kept around since it previously existed

Copy link
Member

Choose a reason for hiding this comment

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

Looks like @satra specifically added this in #1529. Guessing the flag ordering was non-deterministic, since he also added #doctest: +SKIP to the cmdline line. If the cmdline check is working consistently, I'd say go ahead and drop.

>>> converter.run() # doctest: +SKIP
"""

input_spec = Dcm2niixInputSpec
Expand Down