|
| 1 | +# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT |
| 2 | +from nipype.testing import assert_equal |
| 3 | +from nipype.interfaces.fsl.maths import StdImage |
| 4 | + |
| 5 | +def test_StdImage_inputs(): |
| 6 | + input_map = dict(args=dict(argstr='%s', |
| 7 | + ), |
| 8 | + dimension=dict(argstr='-%sstd', |
| 9 | + position=4, |
| 10 | + usedefault=True, |
| 11 | + ), |
| 12 | + environ=dict(nohash=True, |
| 13 | + usedefault=True, |
| 14 | + ), |
| 15 | + ignore_exception=dict(nohash=True, |
| 16 | + usedefault=True, |
| 17 | + ), |
| 18 | + in_file=dict(argstr='%s', |
| 19 | + mandatory=True, |
| 20 | + position=2, |
| 21 | + ), |
| 22 | + internal_datatype=dict(argstr='-dt %s', |
| 23 | + position=1, |
| 24 | + ), |
| 25 | + nan2zeros=dict(argstr='-nan', |
| 26 | + position=3, |
| 27 | + ), |
| 28 | + out_file=dict(argstr='%s', |
| 29 | + genfile=True, |
| 30 | + hash_files=False, |
| 31 | + position=-2, |
| 32 | + ), |
| 33 | + output_datatype=dict(argstr='-odt %s', |
| 34 | + position=-1, |
| 35 | + ), |
| 36 | + output_type=dict(), |
| 37 | + terminal_output=dict(nohash=True, |
| 38 | + ), |
| 39 | + ) |
| 40 | + inputs = StdImage.input_spec() |
| 41 | + |
| 42 | + for key, metadata in input_map.items(): |
| 43 | + for metakey, value in metadata.items(): |
| 44 | + yield assert_equal, getattr(inputs.traits()[key], metakey), value |
| 45 | + |
| 46 | +def test_StdImage_outputs(): |
| 47 | + output_map = dict(out_file=dict(), |
| 48 | + ) |
| 49 | + outputs = StdImage.output_spec() |
| 50 | + |
| 51 | + for key, metadata in output_map.items(): |
| 52 | + for metakey, value in metadata.items(): |
| 53 | + yield assert_equal, getattr(outputs.traits()[key], metakey), value |
| 54 | + |
0 commit comments