Skip to content

Commit d633a57

Browse files
committed
BF: provide chain of requires for LaplacianThickness
Thanks @effigies. This should prevent incorrect specification` of parameters in the command line since for ants they are just positional ones, so all previous ones should be specified
1 parent 597c03f commit d633a57

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

nipype/interfaces/ants/segmentation.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,19 +214,23 @@ class LaplacianThicknessInputSpec(ANTSCommandInputSpec):
214214
prior_thickness = traits.Float(
215215
argstr='%s',
216216
desc='Prior thickness (defaults to 500)',
217+
requires=['smooth_param'],
217218
position=5)
218219
dT = traits.Float(
219220
argstr='%s',
220221
desc='Time delta used during integration (defaults to 0.01)',
222+
requires=['prior_thickness'],
221223
position=6)
222224
sulcus_prior = traits.Float(
223225
argstr='%s',
224226
desc='Positive floating point number for sulcus prior. '
225227
'Authors said that 0.15 might be a reasonable value',
228+
requires=['dT'],
226229
position=7)
227230
tolerance = traits.Float(
228231
argstr='%s',
229232
desc='Tolerance to reach during optimization (defaults to 0.001)',
233+
requires=['sulcus_prior'],
230234
position=8)
231235

232236

0 commit comments

Comments
 (0)