Skip to content
This repository has been archived by the owner on May 2, 2024. It is now read-only.

Commit

Permalink
improve messages (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
cfkanesan authored Mar 22, 2024
1 parent 2328d98 commit 05cd0e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/idpi/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def override(message: bytes, **kwargs: typing.Any) -> dict[str, typing.Any]:
Note that no special consideration is made for maintaining consistency when
overriding template definition keys such as productDefinitionTemplateNumber.
Note that the origin components in x and y will be unset.
Note that the origin components in x and y are left untouched.
Parameters
----------
Expand Down
2 changes: 1 addition & 1 deletion src/idpi/operators/destagger.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def _update_grid(field: xr.DataArray, dim: Literal["x", "y"]) -> dict[str, Any]:

def _update_vertical(field) -> dict[str, Any]:
if field.vcoord_type != "model_level":
raise ValueError("Field.vcoord_type must model_level")
raise ValueError("typeOfLevel must equal generalVertical")
return metadata.override(
field.message,
typeOfLevel="generalVerticalLayer",
Expand Down

0 comments on commit 05cd0e8

Please sign in to comment.