Skip to content

Commit 2ad6fe0

Browse files
committed
rename and add scale file to template
fix website typo remove afni jokes
1 parent 1d77af8 commit 2ad6fe0

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed

nipype/interfaces/afni/utils.py

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1239,10 +1239,8 @@ class UnifizeInputSpec(AFNICommandInputSpec):
12391239
exists=True,
12401240
copyfile=False)
12411241
out_file = File(
1242-
name_template='%s_unif',
12431242
desc='output image file name',
1244-
argstr='-prefix %s',
1245-
name_source='in_file')
1243+
argstr='-prefix %s')
12461244
t2 = traits.Bool(
12471245
desc='Treat the input as if it were T2-weighted, rather than '
12481246
'T1-weighted. This processing is done simply by inverting '
@@ -1261,8 +1259,7 @@ class UnifizeInputSpec(AFNICommandInputSpec):
12611259
'proportionally if the dataset voxel size differs significantly '
12621260
'from 1 mm.',
12631261
argstr='-Urad %s')
1264-
ssave = File(
1265-
name_template='%s_scale',
1262+
scale_file = File(
12661263
desc='output file name to save the scale factor used at each voxel ',
12671264
argstr='-ssave %s')
12681265
no_duplo = traits.Bool(
@@ -1282,8 +1279,8 @@ class UnifizeInputSpec(AFNICommandInputSpec):
12821279

12831280

12841281
class UnifizeOutputSpec(TraitedSpec):
1285-
out_file = File(desc='unifized file',
1286-
exists=True)
1282+
scale_file = File(desc='scale factor file')
1283+
out_file = File(desc='unifized file', exists=True)
12871284

12881285

12891286
class Unifize(AFNICommand):
@@ -1307,11 +1304,6 @@ class Unifize(AFNICommand):
13071304
* Want to correct EPI datasets for nonuniformity?
13081305
You can try the new and experimental [Mar 2017] '-EPI' option.
13091306
1310-
* Method: Obi-Wan's personal variant of Ziad's sneaky trick.
1311-
(If you want to know what his trick is, you'll have to ask him, or
1312-
read Obi-Wan's source code [which is a world of ecstasy and exaltation],
1313-
or just read all the way to the end of this help output.)
1314-
13151307
* The principal motive for this program is for use in an image
13161308
registration script, and it may or may not be useful otherwise.
13171309
@@ -1320,7 +1312,7 @@ class Unifize(AFNICommand):
13201312
(In other words, we do not recommend the use of 3dUniformize.)
13211313
13221314
For complete details, see the `3dUnifize Documentation.
1323-
<https://afni.nimh.nih.gov/pub../pub/dist/doc/program_help/3dUnifize.html>`_
1315+
<https://afni.nimh.nih.gov/pub/dist/doc/program_help/3dUnifize.html>`_
13241316
13251317
Examples
13261318
========

0 commit comments

Comments
 (0)