Skip to content

Commit

Permalink
Fix typo in patient list wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
Hyedryn committed Sep 8, 2023
1 parent 1c28def commit 85c971b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions elikopy/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -2404,16 +2404,17 @@ def patientlist_wrapper(self, function, func_args, folder_path=None, patient_lis
for p in patient_list:
patient_path = p
if slurm_subpath is None:
slurm_path = folder_path + '/subjects/' + patient_path + '/' + "slurm-%j"
slurm_path = folder_path + '/subjects/' + patient_path + '/'
else:
slurm_path = folder_path + '/subjects/' + patient_path + '/' + slurm_subpath + "/slurm-%j"
slurm_path = folder_path + '/subjects/' + patient_path + '/' + slurm_subpath

if not (os.path.exists(slurm_path)):
try:
os.makedirs(slurm_path)
except OSError:
print("Creation of the directory %s failed" % slurm_path)

slurm_path = slurm_path + "/slurm-%j"

if slurm:
job = {
"wrap": "export OMP_NUM_THREADS=" + str(core_count) + " ; export FSLPARALLEL=" + str(
Expand Down

0 comments on commit 85c971b

Please sign in to comment.