Commit 3b43ed83 authored by Christoph Arthofer's avatar Christoph Arthofer
Browse files

changed to Python fsl_sub to support both SLURM and SGE based job submission

parent 5f80df5b
......@@ -392,7 +392,7 @@ def averageImages(img_paths, out_path, mod='average', norm_bool=False):
if n_exist > 0:
mean_img = fslmaths(sum_img).div(n_exist).run()
mean_.to_filename(out_path)
mean_img.to_filename(out_path)
elif mod == 'median':
images = []
for i, img_path in enumerate(img_paths):
......@@ -795,7 +795,7 @@ if __name__ == "__main__":
cpuq = args.cpuq
# job_ids = ['' for _ in range(100)]
job_ids = [None for _ in range(100)]
job_ids = [np.nan for _ in range(100)]
task_count = 0
os.mkdir(base_dir, mode=0o770) if not os.path.exists(base_dir) else print(base_dir + ' exists')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment