From f7261ed8385cc9a1222fe2dcf78e73054dd7373b Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 27 Sep 2023 17:19:45 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- scripts/join_backtest.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/join_backtest.py b/scripts/join_backtest.py index f7e7e124..d42ff847 100644 --- a/scripts/join_backtest.py +++ b/scripts/join_backtest.py @@ -43,9 +43,7 @@ def main(dir, save_to): with fsspec.open(f"gs://{filename}", mode="rb") as file: dataset = xr.open_dataset(file, engine="h5netcdf") national = dataset.sel(gsp_id=0) - national = national.assign_coords( - forecast_init_time=national.forecast_init_time.values - ) + national = national.assign_coords(forecast_init_time=national.forecast_init_time.values) idx = range(0, len(national.target_datetime_utc.values)) national = national.assign_coords(target_datetime_utc=idx) national = national.load()