Skip to content

Commit abc2cd7

Browse files
committed
TEST: make specs
1 parent b08d003 commit abc2cd7

File tree

7 files changed

+109
-558
lines changed

7 files changed

+109
-558
lines changed

nipype/interfaces/freesurfer/tests/test_auto_GLMFit.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,13 @@ def test_GLMFit_inputs():
102102
mrtm2=dict(
103103
argstr="--mrtm2 %s %s %f...",
104104
),
105+
nii=dict(
106+
argstr="--nii",
107+
xor=["nii", "nii_gz"],
108+
),
105109
nii_gz=dict(
106110
argstr="--nii.gz",
111+
xor=["nii", "nii_gz"],
107112
),
108113
no_contrast_ok=dict(
109114
argstr="--no-contrasts-ok",
@@ -220,6 +225,9 @@ def test_GLMFit_outputs():
220225
beta_file=dict(
221226
extensions=None,
222227
),
228+
bp_file=dict(
229+
extensions=None,
230+
),
223231
dof_file=dict(
224232
extensions=None,
225233
),
@@ -245,6 +253,9 @@ def test_GLMFit_outputs():
245253
gamma_file=dict(),
246254
gamma_var_file=dict(),
247255
glm_dir=dict(),
256+
k2p_file=dict(
257+
extensions=None,
258+
),
248259
mask_file=dict(
249260
extensions=None,
250261
),

nipype/interfaces/freesurfer/tests/test_auto_GTMPVC.py

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ def test_GTMPVC_inputs():
7878
mgx=dict(
7979
argstr="--mgx %f",
8080
),
81+
no_pvc=dict(
82+
argstr="--no-pvc",
83+
),
8184
no_reduce_fov=dict(
8285
argstr="--no-reduce-fov",
8386
),
@@ -87,17 +90,20 @@ def test_GTMPVC_inputs():
8790
no_tfe=dict(
8891
argstr="--no-tfe",
8992
),
90-
opt=dict(
93+
num_threads=dict(
9194
argstr="--threads %i",
9295
),
96+
opt=dict(
97+
argstr="--opt %i",
98+
),
9399
opt_brain=dict(
94100
argstr="--opt-brain",
95101
),
96102
opt_seg_merge=dict(
97103
argstr="--opt-seg-merge",
98104
),
99105
opt_tol=dict(
100-
argstr="--opt-tol %f %f %f",
106+
argstr="--opt-tol %i %f %f",
101107
),
102108
psf=dict(
103109
argstr="--psf %f",
@@ -128,12 +134,15 @@ def test_GTMPVC_inputs():
128134
argstr="--reg %s",
129135
extensions=None,
130136
mandatory=True,
137+
xor=["reg_file", "regheader", "reg_identity"],
131138
),
132139
reg_identity=dict(
133-
argstr="--regheader",
140+
argstr="--reg-identity",
141+
xor=["reg_file", "regheader", "reg_identity"],
134142
),
135143
regheader=dict(
136144
argstr="--regheader",
145+
xor=["reg_file", "regheader", "reg_identity"],
137146
),
138147
replace=dict(
139148
argstr="--replace %i %i",
@@ -157,7 +166,7 @@ def test_GTMPVC_inputs():
157166
argstr="--save_yhat_full_fov",
158167
),
159168
save_yhat_with_noise=dict(
160-
argstr="--ss %i %i",
169+
argstr="--save-yhat-with-noise",
161170
),
162171
scale_refval=dict(
163172
argstr="--scale-refval %f",
@@ -174,9 +183,6 @@ def test_GTMPVC_inputs():
174183
argstr="--ss %f %f %f",
175184
),
176185
subjects_dir=dict(),
177-
threads=dict(
178-
argstr="--threads %i",
179-
),
180186
tt_reduce=dict(
181187
argstr="--tt-reduce",
182188
),

nipype/interfaces/freesurfer/tests/test_auto_GTMSeg.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def test_GTMSeg_inputs():
4444
extensions=None,
4545
usedefault=True,
4646
),
47-
output_usf=dict(
47+
output_upsampling_factor=dict(
4848
argstr="--output-usf %i",
4949
),
5050
subject_id=dict(
@@ -58,7 +58,7 @@ def test_GTMSeg_inputs():
5858
subsegwm=dict(
5959
argstr="--subsegwm",
6060
),
61-
usf=dict(
61+
upsampling_factor=dict(
6262
argstr="--usf %i",
6363
),
6464
wm_annot=dict(

nipype/interfaces/freesurfer/tests/test_auto_LoganRef.py

Lines changed: 22 additions & 181 deletions
Original file line numberDiff line numberDiff line change
@@ -223,211 +223,52 @@ def test_LoganRef_inputs():
223223

224224
def test_LoganRef_outputs():
225225
output_map = dict(
226-
allow_ill_cond=dict(
227-
argstr="--illcond",
228-
),
229-
allow_repeated_subjects=dict(
230-
argstr="--allowsubjrep",
231-
),
232-
args=dict(
233-
argstr="%s",
234-
),
235-
bp=dict(
226+
beta_file=dict(
236227
extensions=None,
237228
),
238-
calc_AR1=dict(
239-
argstr="--tar1",
240-
),
241-
check_opts=dict(
242-
argstr="--checkopts",
243-
),
244-
compute_log_y=dict(
245-
argstr="--logy",
246-
),
247-
contrast=dict(
248-
argstr="--C %s...",
249-
),
250-
cortex=dict(
251-
argstr="--cortex",
252-
xor=["label_file"],
253-
),
254-
debug=dict(
255-
argstr="--debug",
256-
),
257-
design=dict(
258-
argstr="--X %s",
229+
bp_file=dict(
259230
extensions=None,
260-
xor=("fsgd", "design", "one_sample"),
261-
),
262-
diag=dict(
263-
argstr="--diag %d",
264231
),
265-
diag_cluster=dict(
266-
argstr="--diag-cluster",
267-
),
268-
environ=dict(
269-
nohash=True,
270-
usedefault=True,
271-
),
272-
fixed_fx_dof=dict(
273-
argstr="--ffxdof %d",
274-
xor=["fixed_fx_dof_file"],
275-
),
276-
fixed_fx_dof_file=dict(
277-
argstr="--ffxdofdat %d",
232+
dof_file=dict(
278233
extensions=None,
279-
xor=["fixed_fx_dof"],
280234
),
281-
fixed_fx_var=dict(
282-
argstr="--yffxvar %s",
235+
error_file=dict(
283236
extensions=None,
284237
),
285-
force_perm=dict(
286-
argstr="--perm-force",
287-
),
288-
fsgd=dict(
289-
argstr="--fsgd %s %s",
290-
xor=("fsgd", "design", "one_sample"),
291-
),
292-
fwhm=dict(
293-
argstr="--fwhm %f",
238+
error_stddev_file=dict(
239+
extensions=None,
294240
),
295-
glm_dir=dict(
296-
argstr="--glmdir %s",
297-
genfile=True,
241+
error_var_file=dict(
242+
extensions=None,
298243
),
299-
hemi=dict(),
300-
in_file=dict(
301-
argstr="--y %s",
302-
copyfile=False,
244+
estimate_file=dict(
303245
extensions=None,
304-
mandatory=True,
305246
),
306-
invert_mask=dict(
307-
argstr="--mask-inv",
247+
frame_eigenvectors=dict(
248+
extensions=None,
308249
),
309-
label_file=dict(
310-
argstr="--label %s",
250+
ftest_file=dict(),
251+
fwhm_file=dict(
311252
extensions=None,
312-
xor=["cortex"],
313253
),
314-
logan=dict(
315-
argstr="--logan %s %s %f...",
254+
gamma_file=dict(),
255+
gamma_var_file=dict(),
256+
glm_dir=dict(),
257+
k2p_file=dict(
258+
extensions=None,
316259
),
317260
mask_file=dict(
318-
argstr="--mask %s",
319261
extensions=None,
320262
),
321-
mrtm1=dict(
322-
argstr="--mrtm1 %s %s...",
323-
),
324-
mrtm2=dict(
325-
argstr="--mrtm2 %s %s %f...",
326-
),
327-
nii_gz=dict(
328-
argstr="--nii.gz",
329-
),
330-
no_contrast_ok=dict(
331-
argstr="--no-contrasts-ok",
332-
),
333-
no_est_fwhm=dict(
334-
argstr="--no-est-fwhm",
335-
),
336-
no_mask_smooth=dict(
337-
argstr="--no-mask-smooth",
338-
),
339-
no_prune=dict(
340-
argstr="--no-prune",
341-
xor=["prunethresh"],
342-
),
343-
one_sample=dict(
344-
argstr="--osgm",
345-
xor=("one_sample", "fsgd", "design", "contrast"),
346-
),
347-
pca=dict(
348-
argstr="--pca",
349-
),
350-
per_voxel_reg=dict(
351-
argstr="--pvr %s...",
352-
),
353-
profile=dict(
354-
argstr="--profile %d",
355-
),
356-
prune=dict(
357-
argstr="--prune",
358-
),
359-
prune_thresh=dict(
360-
argstr="--prune_thr %f",
361-
xor=["noprune"],
362-
),
363-
resynth_test=dict(
364-
argstr="--resynthtest %d",
365-
),
366-
save_cond=dict(
367-
argstr="--save-cond",
368-
),
369-
save_estimate=dict(
370-
argstr="--yhat-save",
371-
),
372-
save_res_corr_mtx=dict(
373-
argstr="--eres-scm",
374-
),
375-
save_residual=dict(
376-
argstr="--eres-save",
377-
),
378-
seed=dict(
379-
argstr="--seed %d",
380-
),
381-
self_reg=dict(
382-
argstr="--selfreg %d %d %d",
383-
),
384-
sim_done_file=dict(
385-
argstr="--sim-done %s",
263+
sig_file=dict(),
264+
singular_values=dict(
386265
extensions=None,
387266
),
388-
sim_sign=dict(
389-
argstr="--sim-sign %s",
390-
),
391-
simulation=dict(
392-
argstr="--sim %s %d %f %s",
393-
),
394-
subject_id=dict(),
395-
subjects_dir=dict(),
396-
surf=dict(
397-
argstr="--surf %s %s %s",
398-
requires=["subject_id", "hemi"],
399-
),
400-
surf_geo=dict(
401-
usedefault=True,
402-
),
403-
synth=dict(
404-
argstr="--synth",
405-
),
406-
uniform=dict(
407-
argstr="--uniform %f %f",
408-
),
409-
var_fwhm=dict(
410-
argstr="--var-fwhm %f",
411-
),
412-
vox_dump=dict(
413-
argstr="--voxdump %d %d %d",
414-
),
415-
weight_file=dict(
267+
spatial_eigenvectors=dict(
416268
extensions=None,
417-
xor=["weighted_ls"],
418269
),
419-
weight_inv=dict(
420-
argstr="--w-inv",
421-
xor=["weighted_ls"],
422-
),
423-
weight_sqrt=dict(
424-
argstr="--w-sqrt",
425-
xor=["weighted_ls"],
426-
),
427-
weighted_ls=dict(
428-
argstr="--wls %s",
270+
svd_stats_file=dict(
429271
extensions=None,
430-
xor=("weight_file", "weight_inv", "weight_sqrt"),
431272
),
432273
)
433274
outputs = LoganRef.output_spec()

0 commit comments

Comments
 (0)