diff --git a/src/xfel_calibrate/calibrate.py b/src/xfel_calibrate/calibrate.py index 000dddea5d0975ff604f6c44c4a896d05c5de15c..951dba8ea94b711cff5ce1796b7486633696f107 100755 --- a/src/xfel_calibrate/calibrate.py +++ b/src/xfel_calibrate/calibrate.py @@ -407,7 +407,7 @@ def add_args_from_nb(nb, parser, cvar=None, no_required=False): :param bool no_required: If True, none of the added options are required. """ parser.description = make_epilog(nb) - parms = extract_parameters(nb, lang='python3') + parms = extract_parameters(nb, lang='python') for p in parms: @@ -676,7 +676,7 @@ def concurrent_run(temp_path, nb, nbname, args, cparm=None, cval=None, suffix = flatten_list(cval) # first convert the notebook - parms = extract_parameters(nb, lang='python3') + parms = extract_parameters(nb, lang='python') if has_parm(parms, "cluster_profile"): cluster_profile = f"{args['cluster_profile']}_{suffix}" @@ -686,7 +686,7 @@ def concurrent_run(temp_path, nb, nbname, args, cparm=None, cval=None, params = parameter_values(parms, **args) params = parameter_values(params, cluster_profile=cluster_profile) - new_nb = replace_definitions(nb, params, execute=False, lang='python3') + new_nb = replace_definitions(nb, params, execute=False, lang='python') if not show_title: first_markdown_cell(new_nb).source = '' set_figure_format(new_nb, args["vector_figs"]) @@ -843,7 +843,7 @@ def run(): if ext_func is not None: extend_params(nb, ext_func) - parms = extract_parameters(nb, lang='python3') + parms = extract_parameters(nb, lang='python') title, author, version = extract_title_author_version(nb)