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

Allow for xfel-calibrate with no --karabo-id (as in tests)

parent 3fe4f667
No related branches found
No related tags found
1 merge request!871Make metadata directory name match report filename
......@@ -613,7 +613,8 @@ def run(argv=None):
out_path.mkdir(parents=True, exist_ok=True)
# Use given report name, or automatic unique name if not specified
unique_name = f"{args['karabo_id']}-{nb_details.caltype}-{request_time:%y%m%d_%H%M%S.%f}"
det_name = args.get('karabo_id', nb_details.detector)
unique_name = f"{det_name}-{nb_details.caltype}-{request_time:%y%m%d_%H%M%S.%f}"
if args['skip_report']:
report_to = ''
elif args["report_to"] is None:
......
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