Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Aug 5, 2024
1 parent e268a61 commit f928e80
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions experiments/analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def main(runs: list[str], run_names: list[str]) -> None:
for run in runs:
run = api.run(f"openclimatefix/PROJECT/{run}")

df = run.history(samples=run.lastHistoryStep+1)
df = run.history(samples=run.lastHistoryStep + 1)
# Get the columns that are in the format 'MAE_horizon/step_<number>/val`
mae_cols = [col for col in df.columns if "MAE_horizon/step_" in col and "val" in col]
# Sort them
Expand Down Expand Up @@ -121,4 +121,3 @@ def main(runs: list[str], run_names: list[str]) -> None:
parser.add_argument("--run_names", nargs="+")
args = parser.parse_args()
main(args.list_of_runs, args.run_names)

0 comments on commit f928e80

Please sign in to comment.