From dbd9f5bfb3e7c7d596f5962393cdb901ebed9fbf Mon Sep 17 00:00:00 2001 From: Bob Bird Date: Tue, 22 Oct 2024 08:34:55 -0600 Subject: [PATCH] apply style --- lib/ramble/ramble/application.py | 10 +++++++--- lib/ramble/ramble/workspace/workspace.py | 4 +++- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/lib/ramble/ramble/application.py b/lib/ramble/ramble/application.py index d19a5b652..c6e2c086e 100644 --- a/lib/ramble/ramble/application.py +++ b/lib/ramble/ramble/application.py @@ -1944,14 +1944,17 @@ def is_numeric_fom(fom): if fom_key not in repeat_foms[context_name].keys(): repeat_foms[context_name][fom_key] = { "fom_type": fom["fom_type"], - "fom_values": []} + "fom_values": [], + } if is_numeric_fom(fom): repeat_foms[context_name][fom_key]["fom_is_numeric"] = True else: repeat_foms[context_name][fom_key]["fom_is_numeric"] = False fom_contents = (False, fom["value"], fom["fom_type"]) if repeat_foms[context_name][fom_key]["fom_is_numeric"]: - repeat_foms[context_name][fom_key]["fom_values"].append(float(fom["value"])) + repeat_foms[context_name][fom_key]["fom_values"].append( + float(fom["value"]) + ) else: repeat_foms[context_name][fom_key]["fom_values"].append(fom["value"]) @@ -2162,7 +2165,8 @@ def _analysis_dicts(self, criteria_list): "units": conf["units"], "origin": conf["origin"], "origin_type": conf["origin_type"], - # FIXME: this 'to_dict' is getting something strange passed into it and I'm not sure where it came from + # FIXME: this 'to_dict' is getting something strange passed + # into it and I'm not sure where it came from "fom_type": conf["fom_type"].to_dict(), } if conf["contexts"]: diff --git a/lib/ramble/ramble/workspace/workspace.py b/lib/ramble/ramble/workspace/workspace.py index c00b57076..b49612653 100644 --- a/lib/ramble/ramble/workspace/workspace.py +++ b/lib/ramble/ramble/workspace/workspace.py @@ -1357,7 +1357,9 @@ def dump_results(self, output_formats=["text"], print_results=False, summary_onl mod = fom["origin"] name = f"{fom['origin_type']}{delim}{mod}{delim}{name}" - output = "{} = {} {}".format(name, fom["value"], fom["units"]) + output = "{} = {} {}".format( + name, fom["value"], fom["units"] + ) single_foms.append(output) for fom_name, fom_val_list in summary_foms.items():