Skip to content

Commit ef3e905

Browse files
committed
Merge pull request #862 from oesteban/fix/TOPUPencodingfile
Readout time got truncated in automatic encfile generation
2 parents 7a0633c + 2433f52 commit ef3e905

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

nipype/interfaces/fsl/epi.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ def _generate_encfile(self):
252252
line = [float(val[0] == encdir[0]) * direction
253253
for val in ['x', 'y', 'z']] + [durations[idx]]
254254
lines.append(line)
255-
np.savetxt(out_file, np.array(lines), fmt='%d %d %d %.3f')
255+
np.savetxt(out_file, np.array(lines), fmt='%d %d %d %.8f')
256256
return out_file
257257

258258
def _overload_extension(self, value, name=None):
@@ -408,11 +408,11 @@ def _format_arg(self, name, spec, value):
408408
if name == 'in_topup_fieldcoef':
409409
return spec.argstr % value.split('_fieldcoef')[0]
410410
return super(Eddy, self)._format_arg(name, spec, value)
411-
411+
412412
def _parse_inputs( self, skip=None ):
413413
if skip is None:
414414
skip = []
415-
415+
416416
if not isdefined(self.inputs.out_base ):
417417
self.inputs.out_base = os.path.abspath( './eddy_corrected' )
418418
return super(Eddy, self)._parse_inputs(skip=skip)

0 commit comments

Comments
 (0)