fix
This commit is contained in:
parent
cb8a454639
commit
e61bf250a5
@ -121,7 +121,7 @@ class Slate():
|
|||||||
if isinstance(conf, collections.abc.Mapping):
|
if isinstance(conf, collections.abc.Mapping):
|
||||||
val = conf.get(k, default)
|
val = conf.get(k, default)
|
||||||
else:
|
else:
|
||||||
if default:
|
if default != None:
|
||||||
return default
|
return default
|
||||||
raise Exception('')
|
raise Exception('')
|
||||||
else:
|
else:
|
||||||
@ -188,7 +188,7 @@ class Slate():
|
|||||||
array = f'0-{last_job_idx}%{num_parallel_jobs}'
|
array = f'0-{last_job_idx}%{num_parallel_jobs}'
|
||||||
job = pyslurm.JobSubmitDescription(name=s_name, script=script, array=array, **slurmC)
|
job = pyslurm.JobSubmitDescription(name=s_name, script=script, array=array, **slurmC)
|
||||||
job_id = job.submit()
|
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:
|
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')
|
f.write(f'{filename}:{name} submitted to slurm with ids {job_id}_0-{num_jobs} on [git:{sha}] at {datetime.datetime.now()}\n')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user