Skip to content

Edit serialization error message #9916

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 30, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Edit serialization error message
Fixes #4926
  • Loading branch information
VeckoTheGecko committed Dec 25, 2024
commit 34c754dd640c9c0e2bdf543a28a24f7aaa9e8029
4 changes: 2 additions & 2 deletions xarray/backends/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,13 +156,13 @@ def check_name(name: Hashable):
raise ValueError(
f"Invalid name {name!r} for DataArray or Dataset key: "
"string must be length 1 or greater for "
"serialization to netCDF files"
"serialization to netCDF or zarr files"
)
elif name is not None:
raise TypeError(
f"Invalid name {name!r} for DataArray or Dataset key: "
"must be either a string or None for serialization to netCDF "
"files"
"or zarr files"
)

for k in dataset.variables:
Expand Down
Loading
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy