Skip to content

Commit 61fa9f1

Browse files
committed
[ENH] Enable num_threads for antsAffineInitializer
This PR just enables the general control for number of threads for this tool. I just learned that it works differently depending on it ANTsX/ANTs#444
1 parent ec86b74 commit 61fa9f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nipype/interfaces/ants/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ def _list_outputs(self):
181181
return outputs
182182

183183

184-
class AffineInitializerInputSpec(CommandLineInputSpec):
184+
class AffineInitializerInputSpec(ANTSCommandInputSpec):
185185
dimension = traits.Enum(3, 2, usedefault=True, position=0, argstr='%s',
186186
desc='dimension')
187187
fixed_image = File(exists=True, mandatory=True, position=1, argstr='%s',
@@ -207,7 +207,7 @@ class AffineInitializerOutputSpec(TraitedSpec):
207207
out_file = File(desc='output transform file')
208208

209209

210-
class AffineInitializer(CommandLine):
210+
class AffineInitializer(ANTSCommand):
211211
"""
212212
Initialize an affine transform (as in antsBrainExtraction.sh)
213213

0 commit comments

Comments
 (0)