Skip to content

Commit

Permalink
corrected indentation bug that provoked UnboundLocalError: local vari…
Browse files Browse the repository at this point in the history
…able linked_filename referenced before assignment when there was not anatomical processing
  • Loading branch information
chrplr committed Feb 14, 2018
1 parent 3d5bd7c commit 0dcaf45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pypreprocess/subject_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -490,8 +490,8 @@ def hardlink_output_files(self, final=False):
filename = do_nii2niigz(filename, self.anat_scratch_dir)
linked_filename = hard_link(filename,
self.anat_output_dir)
if final:
setattr(self, item, linked_filename)
if final:
setattr(self, item, linked_filename)

# func stuff
self.save_realignment_parameters()
Expand Down

0 comments on commit 0dcaf45

Please sign in to comment.