From 4744c4fbb782c5743f0be54d8f86ce6705de13af Mon Sep 17 00:00:00 2001 From: andrewcyung Date: Fri, 25 Apr 2025 15:20:43 -0700 Subject: [PATCH] Slicer _cmd revision and quotes around %s --- .../slicer/registration/brainsresample.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/nipype/interfaces/slicer/registration/brainsresample.py b/nipype/interfaces/slicer/registration/brainsresample.py index 82a69f6d0a..6ffa9d61b2 100644 --- a/nipype/interfaces/slicer/registration/brainsresample.py +++ b/nipype/interfaces/slicer/registration/brainsresample.py @@ -12,18 +12,18 @@ class BRAINSResampleInputSpec(CommandLineInputSpec): - inputVolume = File(desc="Image To Warp", exists=True, argstr="--inputVolume %s") + inputVolume = File(desc="Image To Warp", exists=True, argstr="--inputVolume \"%s\"") referenceVolume = File( desc="Reference image used only to define the output space. If not specified, the warping is done in the same space as the image to warp.", exists=True, - argstr="--referenceVolume %s", + argstr="--referenceVolume \"%s\"", ) outputVolume = traits.Either( traits.Bool, File(), hash_files=False, desc="Resulting deformed image", - argstr="--outputVolume %s", + argstr="--outputVolume \"%s\"", ) pixelType = traits.Enum( "float", @@ -34,17 +34,17 @@ class BRAINSResampleInputSpec(CommandLineInputSpec): "uchar", "binary", desc="Specifies the pixel type for the input/output images. The 'binary' pixel type uses a modified algorithm whereby the image is read in as unsigned char, a signed distance map is created, signed distance map is resampled, and then a thresholded image of type unsigned char is written to disk.", - argstr="--pixelType %s", + argstr="--pixelType \"%s\"", ) deformationVolume = File( desc="Displacement Field to be used to warp the image", exists=True, - argstr="--deformationVolume %s", + argstr="--deformationVolume \"%s\"", ) warpTransform = File( desc="Filename for the BRAINSFit transform used in place of the deformation field", exists=True, - argstr="--warpTransform %s", + argstr="--warpTransform \"%s\"", ) interpolationMode = traits.Enum( "NearestNeighbor", @@ -103,5 +103,5 @@ class BRAINSResample(SEMLikeCommandLine): input_spec = BRAINSResampleInputSpec output_spec = BRAINSResampleOutputSpec - _cmd = "BRAINSResample " + _cmd = "Slicer --launch BRAINSResample " _outputs_filenames = {"outputVolume": "outputVolume.nii"}