@@ -185,8 +185,8 @@ class ComposeXfm(CommandLineDtitk):
185
185
>>> node.inputs.in_df = 'im_warp.df.nii'
186
186
>>> node.inputs.in_aff= 'im_affine.aff'
187
187
>>> node.cmdline
188
- 'dfRightComposeAffine -aff im_affine.aff -df im_warp.df.nii -out\
189
- im_warp.df_affdf.nii'
188
+ 'dfRightComposeAffine -aff im_affine.aff -df im_warp.df.nii -out'
189
+ ' im_warp.df_affdf.nii'
190
190
>>> node.run() # doctest: +SKIP
191
191
"""
192
192
input_spec = ComposeXfmInputSpec
@@ -202,18 +202,18 @@ class affSymTensor3DVolInputSpec(CommandLineInputSpec):
202
202
name_template = "%s_affxfmd" , keep_extension = True )
203
203
transform = File (exists = True , argstr = "-trans %s" ,
204
204
xor = ['target' , 'translation' , 'euler' , 'deformation' ],
205
- desc = 'transform to apply: specify an input transformation\
206
- file; parameters input will be ignored' ,)
205
+ desc = 'transform to apply: specify an input transformation'
206
+ ' file; parameters input will be ignored' ,)
207
207
interpolation = traits .Enum ('LEI' , 'EI' , usedefault = True ,
208
208
argstr = "-interp %s" ,
209
209
desc = 'Log Euclidean/Euclidean Interpolation' )
210
210
reorient = traits .Enum ('PPD' , 'NO' , 'FS' , argstr = '-reorient %s' ,
211
- usedefault = True , desc = 'Reorientation strategy: \
212
- preservation of principal direction, no \
213
- reorientation, or finite strain' )
211
+ usedefault = True , desc = 'Reorientation strategy: '
212
+ ' preservation of principal direction, no '
213
+ ' reorientation, or finite strain' )
214
214
target = File (exists = True , argstr = "-target %s" , xor = ['transform' ],
215
- desc = 'output volume specification read from the target volume \
216
- if specified' )
215
+ desc = 'output volume specification read from the target '
216
+ 'volume if specified' )
217
217
translation = traits .Tuple ((traits .Float (), traits .Float (),
218
218
traits .Float ()),
219
219
desc = 'translation (x,y,z) in mm' ,
@@ -222,7 +222,7 @@ class affSymTensor3DVolInputSpec(CommandLineInputSpec):
222
222
euler = traits .Tuple ((traits .Float (), traits .Float (), traits .Float ()),
223
223
desc = '(theta, phi, psi) in degrees' ,
224
224
xor = ['transform' ], argstr = '-euler %g %g %g' )
225
- deformation = traits .Tuple (traits . Tuple (( traits .Float (),) * 6 , ...) ,
225
+ deformation = traits .Tuple (( traits .Float (),) * 6 ,
226
226
desc = '(xx,yy,zz,xy,yz,xz)' , xor = ['transform' ],
227
227
argstr = '-deformation %g %g %g %g %g %g' )
228
228
@@ -243,7 +243,7 @@ class affSymTensor3DVol(CommandLineDtitk):
243
243
>>> node.inputs.in_file = 'im1.nii'
244
244
>>> node.inputs.transform = 'im_affine.aff'
245
245
>>> node.cmdline
246
- 'affineSymTensor3DVolume -in im1.nii -interp LEI -out im1_affxfmd.nii\
246
+ 'affineSymTensor3DVolume -in im1.nii -interp LEI -out im1_affxfmd.nii'
247
247
-reorient PPD -trans im_affine.aff'
248
248
>>> node.run() # doctest: +SKIP
249
249
"""
@@ -260,15 +260,15 @@ class affScalarVolInputSpec(CommandLineInputSpec):
260
260
name_template = "%s_affxfmd" , keep_extension = True )
261
261
transform = File (exists = True , argstr = "-trans %s" ,
262
262
xor = ['target' , 'translation' , 'euler' , 'deformation' ],
263
- desc = 'transform to apply: specify an input transformation\
264
- file; parameters input will be ignored' ,)
263
+ desc = 'transform to apply: specify an input transformation'
264
+ ' file; parameters input will be ignored' ,)
265
265
interpolation = traits .Enum ('trilinear' , 'NN' ,
266
266
usedefault = True , argstr = "-interp %s" ,
267
- desc = 'trilinear or nearest neighbor\
268
- interpolation' )
267
+ desc = 'trilinear or nearest neighbor'
268
+ ' interpolation' )
269
269
target = File (exists = True , argstr = "-target %s" , xor = ['transform' ],
270
- desc = 'output volume specification read from the target volume \
271
- if specified' )
270
+ desc = 'output volume specification read from the target '
271
+ 'volume if specified' )
272
272
translation = traits .Tuple ((traits .Float (), traits .Float (),
273
273
traits .Float ()),
274
274
desc = 'translation (x,y,z) in mm' ,
@@ -277,7 +277,7 @@ class affScalarVolInputSpec(CommandLineInputSpec):
277
277
euler = traits .Tuple ((traits .Float (), traits .Float (), traits .Float ()),
278
278
desc = '(theta, phi, psi) in degrees' ,
279
279
xor = ['transform' ], argstr = '-euler %g %g %g' )
280
- deformation = traits .Tuple (traits . Tuple (( traits .Float (),) * 6 , ...) ,
280
+ deformation = traits .Tuple (( traits .Float (),) * 6 ,
281
281
desc = '(xx,yy,zz,xy,yz,xz)' , xor = ['transform' ],
282
282
argstr = '-deformation %g %g %g %g %g %g' )
283
283
@@ -298,8 +298,8 @@ class affScalarVol(CommandLineDtitk):
298
298
>>> node.inputs.in_file = 'im1.nii'
299
299
>>> node.inputs.transform = 'im_affine.aff'
300
300
>>> node.cmdline
301
- 'affineScalarVolume -in im1.nii -interp 0 -out im1_affxfmd.nii -trans\
302
- im_affine.aff'
301
+ 'affineScalarVolume -in im1.nii -interp 0 -out im1_affxfmd.nii -trans'
302
+ ' im_affine.aff'
303
303
>>> node.run() # doctest: +SKIP
304
304
"""
305
305
input_spec = affScalarVolInputSpec
@@ -325,12 +325,12 @@ class diffeoSymTensor3DVolInputSpec(CommandLineInputSpec):
325
325
argstr = "-interp %s" ,
326
326
desc = 'Log Euclidean/Euclidean Interpolation' )
327
327
reorient = traits .Enum ('PPD' , 'FS' , argstr = '-reorient %s' ,
328
- usedefault = True , desc = 'Reorientation strategy: \
329
- preservation of principal direction or finite \
330
- strain' )
328
+ usedefault = True , desc = 'Reorientation strategy: '
329
+ ' preservation of principal direction or finite '
330
+ ' strain' )
331
331
target = File (exists = True , argstr = "-target %s" , xor = ['voxel_size' ],
332
- desc = 'output volume specification read from the target volume \
333
- if specified' )
332
+ desc = 'output volume specification read from the target '
333
+ 'volume if specified' )
334
334
voxel_size = traits .Tuple ((traits .Float (), traits .Float (), traits .Float ()),
335
335
desc = 'xyz voxel size (superseded by target)' ,
336
336
argstr = "-vsize %g %g %g" , xor = ['target' ])
@@ -357,8 +357,8 @@ class diffeoSymTensor3DVol(CommandLineDtitk):
357
357
>>> node.inputs.in_file = 'im1.nii'
358
358
>>> node.inputs.transform = 'im_warp.df.nii'
359
359
>>> node.cmdline
360
- 'deformationSymTensor3DVolume -df FD -in im1.nii -interp LEI -out\
361
- im1_diffeoxfmd.nii -reorient PPD -trans im_warp.df.nii'
360
+ 'deformationSymTensor3DVolume -df FD -in im1.nii -interp LEI -out'
361
+ ' im1_diffeoxfmd.nii -reorient PPD -trans im_warp.df.nii'
362
362
>>> node.run() # doctest: +SKIP
363
363
"""
364
364
@@ -381,8 +381,8 @@ class diffeoScalarVolInputSpec(CommandLineInputSpec):
381
381
transform = transform = File (exists = True , argstr = "-trans %s" ,
382
382
mandatory = True , desc = 'transform to apply' )
383
383
target = File (exists = True , argstr = "-target %s" , xor = ['voxel_size' ],
384
- desc = 'output volume specification read from the target volume \
385
- if specified' )
384
+ desc = 'output volume specification read from the target '
385
+ 'volume if specified' )
386
386
voxel_size = traits .Tuple ((traits .Float (), traits .Float (), traits .Float ()),
387
387
desc = 'xyz voxel size (superseded by target)' ,
388
388
argstr = "-vsize %g %g %g" , xor = ['target' ])
@@ -413,8 +413,8 @@ class diffeoScalarVol(CommandLineDtitk):
413
413
>>> node.inputs.in_file = 'im1.nii'
414
414
>>> node.inputs.transform = 'im_warp.df.nii'
415
415
>>> node.cmdline
416
- 'deformationScalarVolume -in im1.nii -interp 0 -out im1_diffeoxfmd.nii\
417
- -trans im_warp.df.nii'
416
+ 'deformationScalarVolume -in im1.nii -interp 0 -out im1_diffeoxfmd.nii'
417
+ ' -trans im_warp.df.nii'
418
418
>>> node.run() # doctest: +SKIP
419
419
"""
420
420
0 commit comments