Skip to content

Commit

Permalink
Update xarray/backends/netCDF4_.py
Browse files Browse the repository at this point in the history
Co-authored-by: Peter Hill <[email protected]>
  • Loading branch information
kmuehlbauer and ZedThree authored Sep 19, 2024
1 parent 074c8c5 commit 9589c56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xarray/backends/netCDF4_.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,9 +340,9 @@ def _build_and_get_enum(
if datatype.enum_dict != enum_dict:
error_msg = (
f"Cannot save variable `{var_name}` because an enum"
f" `{enum_name}` already exists in the Dataset but have"
f" `{enum_name}` already exists in the Dataset but has"
" a different definition. To fix this error, make sure"
" each variable have a uniquely named enum in their"
" all variables have a uniquely named enum in their"
" `encoding['dtype'].metadata` or, if they should share"
" the same enum type, make sure the enums are identical."
)
Expand Down

0 comments on commit 9589c56

Please sign in to comment.