From 2433f526f8b12f53a9919f8367ac2ee8be141d76 Mon Sep 17 00:00:00 2001 From: Oscar Esteban Date: Wed, 18 Jun 2014 18:22:12 +0200 Subject: [PATCH] Readout time got truncated in automatic encfile generation --- nipype/interfaces/fsl/epi.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nipype/interfaces/fsl/epi.py b/nipype/interfaces/fsl/epi.py index 0c6aff5a44..64a7252c23 100644 --- a/nipype/interfaces/fsl/epi.py +++ b/nipype/interfaces/fsl/epi.py @@ -252,7 +252,7 @@ def _generate_encfile(self): line = [float(val[0] == encdir[0]) * direction for val in ['x', 'y', 'z']] + [durations[idx]] lines.append(line) - np.savetxt(out_file, np.array(lines), fmt='%d %d %d %.3f') + np.savetxt(out_file, np.array(lines), fmt='%d %d %d %.8f') return out_file def _overload_extension(self, value, name=None): @@ -408,11 +408,11 @@ def _format_arg(self, name, spec, value): if name == 'in_topup_fieldcoef': return spec.argstr % value.split('_fieldcoef')[0] return super(Eddy, self)._format_arg(name, spec, value) - + def _parse_inputs( self, skip=None ): if skip is None: skip = [] - + if not isdefined(self.inputs.out_base ): self.inputs.out_base = os.path.abspath( './eddy_corrected' ) return super(Eddy, self)._parse_inputs(skip=skip)