From 39237ef9a1f1f3fc68944805934c40a97937e386 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 25 Sep 2023 11:01:05 +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 | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/scripts/join_backtest.py b/scripts/join_backtest.py index e1daa4d7..99876c13 100644 --- a/scripts/join_backtest.py +++ b/scripts/join_backtest.py @@ -1,9 +1,9 @@ """ A script to download and processing the PVNet backtests that have been uploaded to GCP, - to ouput the pv data saved as Zarr. Currently set up for the 2022 backtest used for - the PVLive and PVNet evaluation. +to ouput the pv data saved as Zarr. Currently set up for the 2022 backtest used for +the PVLive and PVNet evaluation. """ -import xarray as xr import fsspec +import xarray as xr dir = "gs://solar-pv-nowcasting-data/backtest/pvnet_v2_2022/hindcasts/" # filename = 'gs://solar-pv-nowcasting-data/backtest/pvnet_v2_2022/hindcasts/2022-01-01T03:00:00.nc' @@ -30,9 +30,7 @@ national = dataset.sel(gsp_id=0) # assign forecast_init_time as coordinate - national = national.assign_coords( - forecast_init_time=national.forecast_init_time.values - ) + national = national.assign_coords(forecast_init_time=national.forecast_init_time.values) # drop target_time idx = range(0, len(national.target_datetime_utc.values))