|
| 1 | +# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT |
| 2 | +from nipype.testing import assert_equal |
| 3 | +from nipype.interfaces.afni.preprocess import TCorr1D |
| 4 | +def test_TCorr1D_inputs(): |
| 5 | + input_map = dict(ignore_exception=dict(nohash=True, |
| 6 | + usedefault=True, |
| 7 | + ), |
| 8 | + spearman=dict(position=1, |
| 9 | + xor=['pearson', 'quadrant', 'ktaub'], |
| 10 | + argstr=' -spearman', |
| 11 | + ), |
| 12 | + pearson=dict(position=1, |
| 13 | + xor=['spearman', 'quadrant', 'ktaub'], |
| 14 | + argstr=' -pearson', |
| 15 | + ), |
| 16 | + out_file=dict(name_source='xset', |
| 17 | + argstr='-prefix %s', |
| 18 | + name_template='%s_correlation.nii.gz', |
| 19 | + keep_extension=True, |
| 20 | + ), |
| 21 | + y_1d=dict(position=-1, |
| 22 | + mandatory=True, |
| 23 | + argstr=' %s', |
| 24 | + ), |
| 25 | + ktaub=dict(position=1, |
| 26 | + xor=['pearson', 'spearman', 'quadrant'], |
| 27 | + argstr=' -ktaub', |
| 28 | + ), |
| 29 | + args=dict(argstr='%s', |
| 30 | + ), |
| 31 | + xset=dict(position=-2, |
| 32 | + mandatory=True, |
| 33 | + argstr=' %s', |
| 34 | + ), |
| 35 | + outputtype=dict(), |
| 36 | + quadrant=dict(position=1, |
| 37 | + xor=['pearson', 'spearman', 'ktaub'], |
| 38 | + argstr=' -quadrant', |
| 39 | + ), |
| 40 | + terminal_output=dict(mandatory=True, |
| 41 | + nohash=True, |
| 42 | + ), |
| 43 | + environ=dict(nohash=True, |
| 44 | + usedefault=True, |
| 45 | + ), |
| 46 | + ) |
| 47 | + inputs = TCorr1D.input_spec() |
| 48 | + |
| 49 | + for key, metadata in input_map.items(): |
| 50 | + for metakey, value in metadata.items(): |
| 51 | + yield assert_equal, getattr(inputs.traits()[key], metakey), value |
| 52 | +def test_TCorr1D_outputs(): |
| 53 | + output_map = dict(out_file=dict(), |
| 54 | + ) |
| 55 | + outputs = TCorr1D.output_spec() |
| 56 | + |
| 57 | + for key, metadata in output_map.items(): |
| 58 | + for metakey, value in metadata.items(): |
| 59 | + yield assert_equal, getattr(outputs.traits()[key], metakey), value |
0 commit comments