Skip to content

Commit 6d4535e

Browse files
committed
ENH: Added allowLossyConversion to DWIConvert input spec
1 parent fbeba07 commit 6d4535e

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

nipype/interfaces/semtools/diffusion/diffusion.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ 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 ")
247248

248249

249250
class DWIConvertOutputSpec(TraitedSpec):

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ def test_DWIConvert_inputs():
5151
),
5252
writeProtocolGradientsFile=dict(argstr='--writeProtocolGradientsFile ',
5353
),
54+
allowLossyConversion=dict(argstr='--allowLossyConversion ',
55+
),
5456
)
5557
inputs = DWIConvert.input_spec()
5658

0 commit comments

Comments
 (0)