From e61bf250a54a7c333dbf10e31e165087c556a076 Mon Sep 17 00:00:00 2001 From: Dominik Roth Date: Wed, 12 Jul 2023 11:49:30 +0200 Subject: [PATCH] fix --- slate/slate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/slate/slate.py b/slate/slate.py index 04ce67d..798c884 100644 --- a/slate/slate.py +++ b/slate/slate.py @@ -121,7 +121,7 @@ class Slate(): if isinstance(conf, collections.abc.Mapping): val = conf.get(k, default) else: - if default: + if default != None: return default raise Exception('') else: @@ -188,7 +188,7 @@ class Slate(): array = f'0-{last_job_idx}%{num_parallel_jobs}' job = pyslurm.JobSubmitDescription(name=s_name, script=script, array=array, **slurmC) job_id = job.submit() - print(f'[i] Job submitted to slurm with id {job_id}') + print(f'[>] Job submitted to slurm with id {job_id}') with open('job_hist.log', 'a') as f: f.write(f'{filename}:{name} submitted to slurm with ids {job_id}_0-{num_jobs} on [git:{sha}] at {datetime.datetime.now()}\n')