@@ -1151,7 +1151,7 @@ def _run_interface(self, runtime):
1151
1151
for cidx in range (npoints ):
1152
1152
mat_txt .append (' ' .join (
1153
1153
['%e' % self .inputs .regressors [key ][cidx ] for key in regs ]))
1154
- mat_txt = '\n ' .join (mat_txt )
1154
+ mat_txt = '\n ' .join (mat_txt ) + ' \n '
1155
1155
# write t-con file
1156
1156
con_txt = []
1157
1157
counter = 0
@@ -1175,7 +1175,7 @@ def _run_interface(self, runtime):
1175
1175
convals [regs .index (reg )
1176
1176
] = self .inputs .contrasts [idx ][3 ][regidx ]
1177
1177
con_txt .append (' ' .join (['%e' % val for val in convals ]))
1178
- con_txt = '\n ' .join (con_txt )
1178
+ con_txt = '\n ' .join (con_txt ) + ' \n '
1179
1179
# write f-con file
1180
1180
fcon_txt = ''
1181
1181
if nfcons :
@@ -1190,6 +1190,7 @@ def _run_interface(self, runtime):
1190
1190
convals [tconmap [self .inputs .contrasts .index (tcon )]] = 1
1191
1191
fcon_txt .append (' ' .join (['%d' % val for val in convals ]))
1192
1192
fcon_txt = '\n ' .join (fcon_txt )
1193
+ fcon_txt += '\n '
1193
1194
# write group file
1194
1195
grp_txt = ['/NumWaves 1' ,
1195
1196
'/NumPoints %d' % npoints ,
@@ -1200,7 +1201,7 @@ def _run_interface(self, runtime):
1200
1201
grp_txt += ['%d' % self .inputs .groups [i ]]
1201
1202
else :
1202
1203
grp_txt += ['1' ]
1203
- grp_txt = '\n ' .join (grp_txt )
1204
+ grp_txt = '\n ' .join (grp_txt ) + ' \n '
1204
1205
1205
1206
txt = {'design.mat' : mat_txt ,
1206
1207
'design.con' : con_txt ,
0 commit comments