Skip to content
Open
Changes from all commits
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
6 changes: 6 additions & 0 deletions xarray/namedarray/parallelcompat.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,14 @@ def get_chunked_array_type(*args: Any) -> ChunkManagerEntrypoint[Any]:
if chunkmanager.is_chunked_array(chunked_arr)
]
if not selected:
suggestion = "This is usually the result of a missing dependency."
if (
maybe_lib := type(chunked_arr).__module__.split(".")[0]
) in KNOWN_CHUNKMANAGERS:
suggestion = f"Please try installing {KNOWN_CHUNKMANAGERS[maybe_lib]!r}."
raise TypeError(
f"Could not find a Chunk Manager which recognises type {type(chunked_arr)}"
f" {suggestion}"
)
elif len(selected) >= 2:
raise TypeError(f"Multiple ChunkManagers recognise type {type(chunked_arr)}")
Expand Down
Loading