Skip to content

Commit

Permalink
Also look for expected files in XNAT_PBS_JOBS
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Hodge committed May 4, 2020
1 parent 17702a6 commit 0692663
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions lib/ccf/one_subject_completion_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,15 @@ def expected_output_files_template_filename(self, fieldmap):
def list_of_expected_files(self, working_dir, fieldmap, subject_info):

hcp_run_utils = os_utils.getenv_required('HCP_RUN_UTILS')
f = open(hcp_run_utils + os.sep + self.processing_name + os.sep
+ self.expected_output_files_template_filename(fieldmap))
if os.path.isfile(hcp_run_utils + os.sep + self.processing_name + os.sep
+ self.expected_output_files_template_filename(fieldmap)):
f = open(hcp_run_utils + os.sep + self.processing_name + os.sep
+ self.expected_output_files_template_filename(fieldmap))
else:
xnat_pbs_jobs = os_utils.getenv_required('XNAT_PBS_JOBS')
f = open(xnat_pbs_jobs + os.sep + self.processing_name + os.sep
+ self.expected_output_files_template_filename(fieldmap))

root_dir = os.sep.join([working_dir, subject_info.subject_id + '_' + subject_info.classifier])
l = file_utils.build_filename_list_from_file(f, root_dir,
subjectid=subject_info.subject_id + '_' + subject_info.classifier,
Expand Down

0 comments on commit 0692663

Please sign in to comment.