From 8a5f7b1e4d36576b246989a9b6d6b187be1fcdcc Mon Sep 17 00:00:00 2001 From: chrplr Date: Wed, 14 Feb 2018 15:10:59 +0100 Subject: [PATCH] corrected indentation bug that provoked UnboundLocalError: local variable linked_filename referenced before assignment when there was not anatomical processing --- pypreprocess/subject_data.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pypreprocess/subject_data.py b/pypreprocess/subject_data.py index 9afd5c3a..9aeb479f 100644 --- a/pypreprocess/subject_data.py +++ b/pypreprocess/subject_data.py @@ -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()