zarr-developers / VirtualiZarr

Create virtual Zarr stores from archival data files using xarray syntax
https://virtualizarr.readthedocs.io/en/stable/api.html
Apache License 2.0
124 stars 24 forks source link

Import top-level version of xarray classes #267

Closed TomNicholas closed 1 month ago

TomNicholas commented 1 month ago

For some reason I always thought that Variable and Index were private xarray internals, but they are actually available in the top-level namespace!

Now the only things we import from xarray that aren't at the top level are

from xarray.backends import AbstractDataStore, BackendArray
from xarray.core.indexes import PandasIndex

which are both semi-public anyway.