From 85c971b334bb2abd30ed9db01b4f2f282aadc87d Mon Sep 17 00:00:00 2001 From: Quentin Dessain Date: Fri, 8 Sep 2023 17:40:08 -0400 Subject: [PATCH] Fix typo in patient list wrapper --- elikopy/core.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/elikopy/core.py b/elikopy/core.py index 7a156ee..924c7ad 100644 --- a/elikopy/core.py +++ b/elikopy/core.py @@ -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(