diff --git a/scripts/pars_hit_aoe.py b/scripts/pars_hit_aoe.py index 3b6831f..2f7167b 100644 --- a/scripts/pars_hit_aoe.py +++ b/scripts/pars_hit_aoe.py @@ -221,7 +221,7 @@ def eres_func(x): pkl.dump(out_plot_dict, w, protocol=pkl.HIGHEST_PROTOCOL) pathlib.Path(os.path.dirname(args.hit_pars)).mkdir(parents=True, exist_ok=True) -results_dict = dict(**ecal_dict["results"], aoe = out_dict) +results_dict = dict(**ecal_dict["results"], aoe=out_dict) with open(args.hit_pars, "w") as w: final_hit_dict = { "pars": {"operations": cal_dict}, @@ -231,8 +231,8 @@ def eres_func(x): pathlib.Path(os.path.dirname(args.aoe_results)).mkdir(parents=True, exist_ok=True) final_object_dict = dict( - **object_dict, - aoe=obj, - ) + **object_dict, + aoe=obj, +) with open(args.aoe_results, "wb") as w: pkl.dump(final_object_dict, w, protocol=pkl.HIGHEST_PROTOCOL) diff --git a/scripts/pars_hit_ecal.py b/scripts/pars_hit_ecal.py index 7f14c54..a7b399e 100644 --- a/scripts/pars_hit_ecal.py +++ b/scripts/pars_hit_ecal.py @@ -283,14 +283,14 @@ def energy_cal_th( if plot in item: param_dict.update({plot: item[plot]}) common_dict.update({key: param_dict}) - plot_dict = {"ecal":plot_dict} + plot_dict = {"ecal": plot_dict} plot_dict["common"] = common_dict with open(args.plot_path, "wb") as f: pkl.dump(plot_dict, f, protocol=pkl.HIGHEST_PROTOCOL) # save output dictionary - output_dict = {"pars": out_dict, "results": {"ecal":result_dict}} + output_dict = {"pars": out_dict, "results": {"ecal": result_dict}} with open(args.save_path, "w") as fp: pathlib.Path(os.path.dirname(args.save_path)).mkdir(parents=True, exist_ok=True) json.dump(output_dict, fp, indent=4) @@ -298,4 +298,4 @@ def energy_cal_th( # save calibration objects with open(args.results_path, "wb") as fp: pathlib.Path(os.path.dirname(args.results_path)).mkdir(parents=True, exist_ok=True) - pkl.dump({"ecal":ecal_object}, fp, protocol=pkl.HIGHEST_PROTOCOL) + pkl.dump({"ecal": ecal_object}, fp, protocol=pkl.HIGHEST_PROTOCOL) diff --git a/scripts/pars_hit_lq.py b/scripts/pars_hit_lq.py index 860029f..3a43a45 100644 --- a/scripts/pars_hit_lq.py +++ b/scripts/pars_hit_lq.py @@ -220,7 +220,7 @@ def eres_func(x): pkl.dump(out_plot_dict, w, protocol=pkl.HIGHEST_PROTOCOL) -results_dict = dict(**eres_dict,lq = out_dict) +results_dict = dict(**eres_dict, lq=out_dict) pathlib.Path(os.path.dirname(args.hit_pars)).mkdir(parents=True, exist_ok=True) with open(args.hit_pars, "w") as w: final_hit_dict = { @@ -231,8 +231,8 @@ def eres_func(x): pathlib.Path(os.path.dirname(args.lq_results)).mkdir(parents=True, exist_ok=True) final_object_dict = dict( - **object_dict, - lq=obj, - ) + **object_dict, + lq=obj, +) with open(args.lq_results, "wb") as w: pkl.dump(final_object_dict, w, protocol=pkl.HIGHEST_PROTOCOL)