Skip to content

Commit 216023f

Browse files
committed
Merge pull request #1483 from BRAINSia/addToDWIConvert
ENH: Added new attributes to DWIConvert input spec
2 parents bb0013f + e818b64 commit 216023f

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

nipype/interfaces/semtools/diffusion/diffusion.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,8 @@ class DWIConvertInputSpec(CommandLineInputSpec):
244244
outputDirectory = traits.Either(traits.Bool, Directory(), hash_files=False, desc="Directory holding the output NRRD file", argstr="--outputDirectory %s")
245245
gradientVectorFile = traits.Either(traits.Bool, File(), hash_files=False, desc="Text file giving gradient vectors", argstr="--gradientVectorFile %s")
246246
smallGradientThreshold = traits.Float(desc="If a gradient magnitude is greater than 0 and less than smallGradientThreshold, then DWIConvert will display an error message and quit, unless the useBMatrixGradientDirections option is set.", argstr="--smallGradientThreshold %f")
247+
allowLossyConversion = traits.Bool(desc="The only supported output type is \'short\'. Conversion from images of a different type may cause data loss due to rounding or truncation. Use with caution!", argstr="--allowLossyConversion ")
248+
transposeInputBVectors = traits.Bool(desc="FSL input BVectors are expected to be encoded in the input file as one vector per line. If it is not the case, use this option to transpose the file as it is read.", argstr="--transposeInputBVectors ")
247249

248250

249251
class DWIConvertOutputSpec(TraitedSpec):

nipype/interfaces/semtools/diffusion/tests/test_auto_DWIConvert.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ def test_DWIConvert_inputs():
5151
),
5252
writeProtocolGradientsFile=dict(argstr='--writeProtocolGradientsFile ',
5353
),
54+
allowLossyConversion=dict(argstr='--allowLossyConversion ',
55+
),
56+
transposeInputBVectors=dict(argstr='--transposeInputBVectors ',
57+
),
5458
)
5559
inputs = DWIConvert.input_spec()
5660

0 commit comments

Comments
 (0)