Skip to content

Commit fd4264f

Browse files
committed
updated string formatting syntax, removed unneeded substitutions and scientific notation
1 parent df8d607 commit fd4264f

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

nipype/interfaces/fsl/model.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1133,28 +1133,28 @@ class L2Model(BaseInterface):
11331133

11341134
def _run_interface(self, runtime):
11351135
cwd = os.getcwd()
1136-
mat_txt = ['/NumWaves 1',
1137-
'/NumPoints %d' % self.inputs.num_copes,
1138-
'/PPheights %e' % 1,
1136+
mat_txt = ['/NumWaves 1',
1137+
'/NumPoints {}'.format(self.inputs.num_copes),
1138+
'/PPheights 1',
11391139
'',
11401140
'/Matrix']
11411141
for i in range(self.inputs.num_copes):
1142-
mat_txt += ['%e' % 1]
1142+
mat_txt += ['1']
11431143
mat_txt = '\n'.join(mat_txt)
11441144

1145-
con_txt = ['/ContrastName1 group mean',
1146-
'/NumWaves 1',
1145+
con_txt = ['/ContrastName1 group mean',
1146+
'/NumWaves 1',
11471147
'/NumContrasts 1',
1148-
'/PPheights %e' % 1,
1148+
'/PPheights 1',
11491149
'/RequiredEffect 100.0', # XX where does this
11501150
# number come from
11511151
'',
11521152
'/Matrix',
1153-
'%e' % 1]
1153+
'1']
11541154
con_txt = '\n'.join(con_txt)
11551155

1156-
grp_txt = ['/NumWaves 1',
1157-
'/NumPoints %d' % self.inputs.num_copes,
1156+
grp_txt = ['/NumWaves 1',
1157+
'/NumPoints {}'.format(self.inputs.num_copes),
11581158
'',
11591159
'/Matrix']
11601160
for i in range(self.inputs.num_copes):

0 commit comments

Comments
 (0)