Skip to content

Commit

Permalink
BUG: Fixed final nipype node N4biasFieldCorrection
Browse files Browse the repository at this point in the history
  • Loading branch information
pdedumast committed Jan 20, 2020
1 parent a03b0d9 commit d4e92fe
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pymialsrtk/interfaces/preprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,8 @@ def _run_interface(self, runtime):
cmd += ['-r', self.inputs.input_sdi]
cmd += ['-o', out_file]

cmd += ['--debluring', str(self.inputs.deblurring)]
if self.inputs.deblurring:
cmd += ['--debluring']

cmd += ['--bregman-loop', '1']
cmd += ['--loop', str(10)]
Expand Down Expand Up @@ -973,7 +974,7 @@ def _run_interface(self, runtime):

try:
print('... cmd: {}'.format(cmd))
cmd = ''.join(cmd)
cmd = ' '.join(cmd)
run(self, cmd, env={}, cwd=os.path.abspath(self.inputs.bids_dir))
except:
print('Failed')
Expand Down

0 comments on commit d4e92fe

Please sign in to comment.