Skip to content
This repository was archived by the owner on Jun 11, 2024. It is now read-only.

Commit 692f237

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent ccb08c1 commit 692f237

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/convert_NWP_grib_to_zarr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ def post_process_dataset(dataset: xr.Dataset) -> xr.Dataset:
459459
logger.debug("Post-processing dataset...")
460460
da = dataset.to_array(dim="variable", name="UKV")
461461

462-
assert len(da['variables']) <= len(NWP_VARIABLE_NAMES)
462+
assert len(da["variables"]) <= len(NWP_VARIABLE_NAMES)
463463
# to_array looks like it can sometimes change the order of the variables.
464464
# So fix the order:
465465
# If some variables are missing, then reindexing will simply set those as NaN.

0 commit comments

Comments
 (0)