Skip to content

Commit 765333a

Browse files
committed
updated string formatting syntax, removed unneeded substitutions and scientific notation
1 parent 4b392d5 commit 765333a

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
@@ -1134,28 +1134,28 @@ class L2Model(BaseInterface):
11341134

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

1146-
con_txt = ['/ContrastName1 group mean',
1147-
'/NumWaves 1',
1146+
con_txt = ['/ContrastName1 group mean',
1147+
'/NumWaves 1',
11481148
'/NumContrasts 1',
1149-
'/PPheights %e' % 1,
1149+
'/PPheights 1',
11501150
'/RequiredEffect 100.0', # XX where does this
11511151
# number come from
11521152
'',
11531153
'/Matrix',
1154-
'%e' % 1]
1154+
'1']
11551155
con_txt = '\n'.join(con_txt)
11561156

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

0 commit comments

Comments
 (0)