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 27, 2023
1 parent 869d73a commit f7261ed
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scripts/join_backtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit f7261ed

Please sign in to comment.