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 Sep 25, 2023
1 parent 74ced2d commit 39237ef
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions scripts/join_backtest.py
Original file line number Diff line number Diff line change
@@ -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'
Expand All @@ -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))
Expand Down

0 comments on commit 39237ef

Please sign in to comment.