|
| 1 | +# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT |
| 2 | +from __future__ import unicode_literals |
| 3 | +from ..confounds import CompCor |
| 4 | + |
| 5 | + |
| 6 | +def test_CompCor_inputs(): |
| 7 | + input_map = dict(components_file=dict(usedefault=True, |
| 8 | + ), |
| 9 | + header_prefix=dict(), |
| 10 | + high_pass_cutoff=dict(usedefault=True, |
| 11 | + ), |
| 12 | + ignore_exception=dict(nohash=True, |
| 13 | + usedefault=True, |
| 14 | + ), |
| 15 | + ignore_initial_volumes=dict(usedefault=True, |
| 16 | + ), |
| 17 | + mask_files=dict(), |
| 18 | + mask_index=dict(requires=['mask_files'], |
| 19 | + xor=['merge_method'], |
| 20 | + ), |
| 21 | + merge_method=dict(requires=['mask_files'], |
| 22 | + xor=['mask_index'], |
| 23 | + ), |
| 24 | + num_components=dict(usedefault=True, |
| 25 | + ), |
| 26 | + pre_filter=dict(usedefault=True, |
| 27 | + ), |
| 28 | + realigned_file=dict(mandatory=True, |
| 29 | + ), |
| 30 | + regress_poly_degree=dict(usedefault=True, |
| 31 | + ), |
| 32 | + repetition_time=dict(), |
| 33 | + save_pre_filter=dict(), |
| 34 | + use_regress_poly=dict(deprecated='0.15.0', |
| 35 | + new_name='pre_filter', |
| 36 | + ), |
| 37 | + ) |
| 38 | + inputs = CompCor.input_spec() |
| 39 | + |
| 40 | + for key, metadata in list(input_map.items()): |
| 41 | + for metakey, value in list(metadata.items()): |
| 42 | + assert getattr(inputs.traits()[key], metakey) == value |
| 43 | + |
| 44 | + |
| 45 | +def test_CompCor_outputs(): |
| 46 | + output_map = dict(components_file=dict(), |
| 47 | + pre_filter_file=dict(), |
| 48 | + ) |
| 49 | + outputs = CompCor.output_spec() |
| 50 | + |
| 51 | + for key, metadata in list(output_map.items()): |
| 52 | + for metakey, value in list(metadata.items()): |
| 53 | + assert getattr(outputs.traits()[key], metakey) == value |
0 commit comments