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 Jun 5, 2023
1 parent 4d37126 commit 299551b
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions ocf_datapipes/load/nwp/nwp.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,13 @@ def open_nwp(zarr_path) -> xr.DataArray:
"""
# Open the data
if type(zarr_path) in [list, tuple] or "*" in str(zarr_path): # Multi-file dataset
nwp = (
xr.open_mfdataset(
zarr_path,
engine="zarr",
concat_dim="init_time",
combine="nested",
chunks={},
).sortby("init_time")
)
nwp = xr.open_mfdataset(
zarr_path,
engine="zarr",
concat_dim="init_time",
combine="nested",
chunks={},
).sortby("init_time")
else:
nwp = xr.open_dataset(
zarr_path,
Expand Down

0 comments on commit 299551b

Please sign in to comment.