@@ -30,7 +30,7 @@ class ConvertScalarImageToRGBInputSpec(ANTSCommandInputSpec):
3030 'blue, copper, jet, hsv, spring, summer, '
3131 'autumn, winter, hot, cool, overunder, custom '
3232 ), mandatory = True , position = 4 )
33- custom_color_map_file = traits .Str ('none' , argstr = '%s' , usedefault = True ,
33+ custom_color_map_file = traits .Str ('none' , argstr = '%s' , usedefault = True ,
3434 desc = 'custom color map file' , position = 5 )
3535 minimum_input = traits .Int (argstr = '%d' , desc = 'minimum input' ,
3636 mandatory = True , position = 6 )
@@ -54,7 +54,7 @@ class ConvertScalarImageToRGB(ANTSCommand):
5454 >>> converter.inputs.input_image = 'T1.nii.gz'
5555 >>> converter.inputs.colormap = 'jet'
5656 >>> converter.inputs.minimum_input = 0
57- >>> converter.inputs.maximum_input = 6
57+ >>> converter.inputs.maximum_input = 6
5858 >>> converter.cmdline
5959 'ConvertScalarImageToRGB 3 T1.nii.gz rgb.nii.gz none jet none 0 6 0 255'
6060 """
@@ -67,9 +67,9 @@ def _format_arg(self, opt, spec, val):
6767
6868 def _list_outputs (self ):
6969 outputs = self ._outputs ().get ()
70- outputs ['output_image' ] = os .path .join (os .getcwd (),
70+ outputs ['output_image' ] = os .path .join (os .getcwd (),
7171 self .inputs .output_image )
72- return outputs
72+ return outputs
7373
7474
7575class CreateTiledMosaicInputSpec (ANTSCommandInputSpec ):
@@ -78,7 +78,7 @@ class CreateTiledMosaicInputSpec(ANTSCommandInputSpec):
7878 mandatory = True )
7979 rgb_image = File (argstr = '-r %s' , exists = True ,
8080 desc = ('An optional Rgb image can be added as an overlay.'
81- 'It must have the same image'
81+ 'It must have the same image'
8282 'geometry as the input grayscale image.' ),
8383 mandatory = True )
8484 mask_image = File (argstr = '-x %s' , exists = True ,
@@ -88,24 +88,24 @@ class CreateTiledMosaicInputSpec(ANTSCommandInputSpec):
8888 'using the specified alpha parameter.' ))
8989 output_image = traits .Str ('output.png' , argstr = '-o %s' ,
9090 desc = 'The output consists of the tiled mosaic image.' ,
91- usedefault = True )
91+ usedefault = True )
9292 tile_geometry = traits .Str (argstr = '-t %s' ,desc = (
9393 'The tile geometry specifies the number of rows and columns'
94- 'in the output image. For example, if the user specifies "5x10", '
94+ 'in the output image. For example, if the user specifies "5x10", '
9595 'then 5 rows by 10 columns of slices are rendered. If R < 0 and C > '
9696 '0 (or vice versa), the negative value is selected'
97- 'based on direction.' ))
97+ 'based on direction.' ))
9898 direction = traits .Int (argstr = '-d %d' , desc = ('Specifies the direction of '
9999 'the slices. If no direction is specified, the '
100- 'direction with the coarsest spacing is chosen.' ))
101- pad_or_crop = traits .Str (argstr = '-p %s' ,
100+ 'direction with the coarsest spacing is chosen.' ))
101+ pad_or_crop = traits .Str (argstr = '-p %s' ,
102102 desc = 'argument passed to -p flag:'
103103 '[padVoxelWidth,<constantValue=0>]'
104104 '[lowerPadding[0]xlowerPadding[1],upperPadding[0]xupperPadding[1],'
105105 'constantValue]'
106106 'The user can specify whether to pad or crop a specified '
107107 'voxel-width boundary of each individual slice. For this '
108- 'program, cropping is simply padding with negative voxel-widths.'
108+ 'program, cropping is simply padding with negative voxel-widths.'
109109 'If one pads (+), the user can also specify a constant pad '
110110 'value (default = 0). If a mask is specified, the user can use '
111111 'the mask to define the region, by using the keyword "mask"'
@@ -118,21 +118,21 @@ class CreateTiledMosaicInputSpec(ANTSCommandInputSpec):
118118 desc = ('flipXxflipY' ))
119119 permute_axes = traits .Bool (argstr = '-g' , desc = 'doPermute'
120120 )
121-
121+
122122
123123class CreateTiledMosaicOutputSpec (TraitedSpec ):
124124 output_image = File (exists = True , desc = 'image file' )
125125
126126class CreateTiledMosaic (ANTSCommand ):
127127 """The program CreateTiledMosaic in conjunction with ConvertScalarImageToRGB
128- provides useful functionality for common image analysis tasks. The basic
129- usage of CreateTiledMosaic is to tile a 3-D image volume slice-wise into
128+ provides useful functionality for common image analysis tasks. The basic
129+ usage of CreateTiledMosaic is to tile a 3-D image volume slice-wise into
130130 a 2-D image.
131131
132132 Examples
133133 --------
134134
135- >>> from nipype.interfaces.ants.visualization import CreateTiledMosaic
135+ >>> from nipype.interfaces.ants.visualization import CreateTiledMosaic
136136 >>> mosaic_slicer = CreateTiledMosaic()
137137 >>> mosaic_slicer.inputs.input_image = 'T1.nii.gz'
138138 >>> mosaic_slicer.inputs.rgb_image = 'rgb.nii.gz'
@@ -141,17 +141,17 @@ class CreateTiledMosaic(ANTSCommand):
141141 >>> mosaic_slicer.inputs.alpha_value = 0.5
142142 >>> mosaic_slicer.inputs.direction = 2
143143 >>> mosaic_slicer.inputs.pad_or_crop = '[ -15x -50 , -15x -30 ,0]'
144- >>> mosaic_slicer.inputs.slices = '[2 ,100 ,160]'
144+ >>> mosaic_slicer.inputs.slices = '[2 ,100 ,160]'
145145 >>> mosaic_slicer.cmdline
146146 'CreateTiledMosaic -a 0.50 -d 2 -i T1.nii.gz -x mask.nii.gz -o output.png -p [ -15x -50 , -15x -30 ,0] -r rgb.nii.gz -s [2 ,100 ,160]'
147147 """
148148
149149 _cmd = 'CreateTiledMosaic'
150150 input_spec = CreateTiledMosaicInputSpec
151151 output_spec = CreateTiledMosaicOutputSpec
152-
152+
153153 def _list_outputs (self ):
154154 outputs = self ._outputs ().get ()
155- outputs ['output_image' ] = os .path .join (os .getcwd (),
155+ outputs ['output_image' ] = os .path .join (os .getcwd (),
156156 self .inputs .output_image )
157157 return outputs
0 commit comments