Skip to content

Commit 7b21b4a

Browse files
committed
sty: fix styles in updated interfaces
1 parent 1b1f059 commit 7b21b4a

File tree

3 files changed

+63
-76
lines changed

3 files changed

+63
-76
lines changed

nipype/interfaces/fsl/model.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -2111,8 +2111,11 @@ class RandomiseInputSpec(FSLCommandInputSpec):
21112111
position=0,
21122112
mandatory=True)
21132113
base_name = traits.Str(
2114-
'randomise', desc='the rootname that all generated files will have',
2115-
argstr='-o "%s"', position=1, usedefault=True)
2114+
'randomise',
2115+
desc='the rootname that all generated files will have',
2116+
argstr='-o "%s"',
2117+
position=1,
2118+
usedefault=True)
21162119
design_mat = File(
21172120
exists=True, desc='design matrix file', argstr='-d %s', position=2)
21182121
tcon = File(

nipype/interfaces/fsl/tests/test_auto_Randomise.py

+57-73
Original file line numberDiff line numberDiff line change
@@ -4,79 +4,63 @@
44

55

66
def test_Randomise_inputs():
7-
input_map = dict(args=dict(argstr='%s',
8-
),
9-
base_name=dict(argstr='-o "%s"',
10-
position=1,
11-
usedefault=True,
12-
),
13-
c_thresh=dict(argstr='-c %.1f',
14-
),
15-
cm_thresh=dict(argstr='-C %.1f',
16-
),
17-
demean=dict(argstr='-D',
18-
),
19-
design_mat=dict(argstr='-d %s',
20-
position=2,
21-
),
22-
environ=dict(nohash=True,
23-
usedefault=True,
24-
),
25-
f_c_thresh=dict(argstr='-F %.2f',
26-
),
27-
f_cm_thresh=dict(argstr='-S %.2f',
28-
),
29-
f_only=dict(argstr='--f_only',
30-
),
31-
fcon=dict(argstr='-f %s',
32-
),
33-
ignore_exception=dict(deprecated='1.0.0',
34-
nohash=True,
35-
usedefault=True,
36-
),
37-
in_file=dict(argstr='-i %s',
38-
mandatory=True,
39-
position=0,
40-
),
41-
mask=dict(argstr='-m %s',
42-
),
43-
num_perm=dict(argstr='-n %d',
44-
),
45-
one_sample_group_mean=dict(argstr='-1',
46-
),
47-
output_type=dict(),
48-
p_vec_n_dist_files=dict(argstr='-P',
49-
),
50-
raw_stats_imgs=dict(argstr='-R',
51-
),
52-
seed=dict(argstr='--seed=%d',
53-
),
54-
show_info_parallel_mode=dict(argstr='-Q',
55-
),
56-
show_total_perms=dict(argstr='-q',
57-
),
58-
tcon=dict(argstr='-t %s',
59-
position=3,
60-
),
61-
terminal_output=dict(deprecated='1.0.0',
62-
nohash=True,
63-
),
64-
tfce=dict(argstr='-T',
65-
),
66-
tfce2D=dict(argstr='--T2',
67-
),
68-
tfce_C=dict(argstr='--tfce_C=%.2f',
69-
),
70-
tfce_E=dict(argstr='--tfce_E=%.2f',
71-
),
72-
tfce_H=dict(argstr='--tfce_H=%.2f',
73-
),
74-
var_smooth=dict(argstr='-v %d',
75-
),
76-
vox_p_values=dict(argstr='-x',
77-
),
78-
x_block_labels=dict(argstr='-e %s',
79-
),
7+
input_map = dict(
8+
args=dict(argstr='%s', ),
9+
base_name=dict(
10+
argstr='-o "%s"',
11+
position=1,
12+
usedefault=True,
13+
),
14+
c_thresh=dict(argstr='-c %.1f', ),
15+
cm_thresh=dict(argstr='-C %.1f', ),
16+
demean=dict(argstr='-D', ),
17+
design_mat=dict(
18+
argstr='-d %s',
19+
position=2,
20+
),
21+
environ=dict(
22+
nohash=True,
23+
usedefault=True,
24+
),
25+
f_c_thresh=dict(argstr='-F %.2f', ),
26+
f_cm_thresh=dict(argstr='-S %.2f', ),
27+
f_only=dict(argstr='--f_only', ),
28+
fcon=dict(argstr='-f %s', ),
29+
ignore_exception=dict(
30+
deprecated='1.0.0',
31+
nohash=True,
32+
usedefault=True,
33+
),
34+
in_file=dict(
35+
argstr='-i %s',
36+
mandatory=True,
37+
position=0,
38+
),
39+
mask=dict(argstr='-m %s', ),
40+
num_perm=dict(argstr='-n %d', ),
41+
one_sample_group_mean=dict(argstr='-1', ),
42+
output_type=dict(),
43+
p_vec_n_dist_files=dict(argstr='-P', ),
44+
raw_stats_imgs=dict(argstr='-R', ),
45+
seed=dict(argstr='--seed=%d', ),
46+
show_info_parallel_mode=dict(argstr='-Q', ),
47+
show_total_perms=dict(argstr='-q', ),
48+
tcon=dict(
49+
argstr='-t %s',
50+
position=3,
51+
),
52+
terminal_output=dict(
53+
deprecated='1.0.0',
54+
nohash=True,
55+
),
56+
tfce=dict(argstr='-T', ),
57+
tfce2D=dict(argstr='--T2', ),
58+
tfce_C=dict(argstr='--tfce_C=%.2f', ),
59+
tfce_E=dict(argstr='--tfce_E=%.2f', ),
60+
tfce_H=dict(argstr='--tfce_H=%.2f', ),
61+
var_smooth=dict(argstr='-v %d', ),
62+
vox_p_values=dict(argstr='-x', ),
63+
x_block_labels=dict(argstr='-e %s', ),
8064
)
8165
inputs = Randomise.input_spec()
8266

nipype/interfaces/utility/base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def _list_outputs(self):
8282
value = getattr(self.inputs, key)
8383
if not isdefined(value):
8484
msg = "%s requires a value for input '%s' because it was listed in 'fields'. \
85-
You can turn off mandatory inputs checking by passing mandatory_inputs = False to the constructor." % \
85+
You can turn off mandatory inputs checking by passing mandatory_inputs = False to the constructor." % \
8686
(self.__class__.__name__, key)
8787
raise ValueError(msg)
8888

0 commit comments

Comments
 (0)