File tree Expand file tree Collapse file tree 1 file changed +72
-0
lines changed
nipype/interfaces/cat12/tests Expand file tree Collapse file tree 1 file changed +72
-0
lines changed Original file line number Diff line number Diff line change 1+ # AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
2+ from ..preprocess import CAT12SANLMDenoising
3+
4+
5+ def test_CAT12SANLMDenoising_inputs ():
6+ input_map = dict (
7+ addnoise = dict (
8+ field = "addnoise" ,
9+ usedefault = True ,
10+ ),
11+ filename_prefix = dict (
12+ field = "prefix" ,
13+ usedefault = True ,
14+ ),
15+ filename_suffix = dict (
16+ field = "suffix" ,
17+ usedefault = True ,
18+ ),
19+ in_files = dict (
20+ copyfile = False ,
21+ field = "data" ,
22+ mandatory = True ,
23+ ),
24+ intlim = dict (
25+ field = "intlim" ,
26+ usedefault = True ,
27+ ),
28+ matlab_cmd = dict (),
29+ mfile = dict (
30+ usedefault = True ,
31+ ),
32+ noisecorr_strength = dict (
33+ field = "nlmfilter.optimized.NCstr" ,
34+ usedefault = True ,
35+ ),
36+ paths = dict (),
37+ replace_nan_and_inf = dict (
38+ field = "replaceNANandINF" ,
39+ usedefault = True ,
40+ ),
41+ rician = dict (
42+ field = "rician" ,
43+ usedefault = True ,
44+ ),
45+ spm_type = dict (
46+ field = "spm_type" ,
47+ usedefault = True ,
48+ ),
49+ use_mcr = dict (),
50+ use_v8struct = dict (
51+ min_ver = "8" ,
52+ usedefault = True ,
53+ ),
54+ )
55+ inputs = CAT12SANLMDenoising .input_spec ()
56+
57+ for key , metadata in list (input_map .items ()):
58+ for metakey , value in list (metadata .items ()):
59+ assert getattr (inputs .traits ()[key ], metakey ) == value
60+
61+
62+ def test_CAT12SANLMDenoising_outputs ():
63+ output_map = dict (
64+ out_file = dict (
65+ extensions = None ,
66+ ),
67+ )
68+ outputs = CAT12SANLMDenoising .output_spec ()
69+
70+ for key , metadata in list (output_map .items ()):
71+ for metakey , value in list (metadata .items ()):
72+ assert getattr (outputs .traits ()[key ], metakey ) == value
You can’t perform that action at this time.
0 commit comments