We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a63c52d commit 100bb8eCopy full SHA for 100bb8e
nipype/interfaces/fsl/preprocess.py
@@ -549,13 +549,15 @@ class FLIRT(FSLCommand):
549
_cmd = 'flirt'
550
input_spec = FLIRTInputSpec
551
output_spec = FLIRTOutputSpec
552
+ _log_written = False
553
554
def aggregate_outputs(self, runtime=None, needed_outputs=None):
555
outputs = super(FLIRT, self).aggregate_outputs(
556
runtime=runtime, needed_outputs=needed_outputs)
- if isdefined(self.inputs.save_log) and self.inputs.save_log:
557
+ if self.inputs.save_log and not self._log_written:
558
with open(outputs.out_log, "a") as text_file:
559
text_file.write(runtime.stdout + '\n')
560
+ self._log_written = True
561
return outputs
562
563
def _parse_inputs(self, skip=None):
0 commit comments