Skip to content

Commit 3f336b4

Browse files
authored
Merge pull request #1426 from TheChymera/l2model
Minor L2Model improvements
2 parents 8ab8f3f + 7f5013f commit 3f336b4

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

nipype/interfaces/fsl/model.py

Lines changed: 11 additions & 11 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 {:d}'.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,
1149-
'/RequiredEffect 100.0', # XX where does this
1148+
'/PPheights 1',
1149+
'/RequiredEffect 100', # 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 {:d}'.format(self.inputs.num_copes),
11581158
'',
11591159
'/Matrix']
11601160
for i in range(self.inputs.num_copes):

0 commit comments

Comments
 (0)