You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make list_chunkmanagers more resilient to broken entrypoints
As I'm a developing my custom chunk manager, I'm often checking out
between my development branch and production branch breaking the
entrypoint.
This made xarray impossible to import unless I re-ran `pip install -e . -vv`
which is somewhat tiring.
This should help xarray be more resilient in other software's bugs in
case they install malformed entrypoints
Example:
```python
>>> from xarray.core.parallelcompat import list_chunkmanagers
>>> list_chunkmanagers()
<ipython-input-3-19326f4950bc>:1: UserWarning: Failed to load entrypoint MyChunkManager due to No module named 'my.array._chunkmanager'. Skipping.
list_chunkmanagers()
{'dask': <xarray.core.daskmanager.DaskManager at 0x7f5b826231c0>}
```
0 commit comments