Skip to content
Snippets Groups Projects
Commit 297e2bf7 authored by Thomas Kluyver's avatar Thomas Kluyver
Browse files

Merge branch 'fail-fast-0-jobs' into 'master'

Clearer error when xfel-calibrate would run no jobs

See merge request !886
parents 41767034 d1eee3b8
No related branches found
No related tags found
1 merge request!886Clearer error when xfel-calibrate would run no jobs
......@@ -770,6 +770,9 @@ def run(argv=None):
cvtype = get_par_attr(parms, concurrency_par, 'type', list)
cvals = remove_duplications(cvals)
if not cvals:
raise ValueError("Splitting data for concurrency gave 0 jobs")
for cnum, cval in enumerate(cvals):
show_title = cnum == 0
cval = [cval, ] if not isinstance(cval, list) and cvtype is list else cval
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment