-
Notifications
You must be signed in to change notification settings - Fork 75
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
no attribute 'LazilyIndexedArray' #192
Comments
I can confirm that this works in Xarray 0.10.1, but not 0.10.2. Release notes didn't give up anything at first glance. |
I think it's pydata/xarray#1899. |
Please rename def __getitem__(self, item):
key, np_inds = indexing.decompose_indexer(
key, self.shape, indexing.IndexingSupport.OUTER)
with self.datastore.ensure_open(autoclose=True):
array = self.get_array()[key.tuple]
if len(np_inds.tuple) > 0:
array = indexing.NumpyIndexingAdapter(array)[np_inds]
return array See an example backend wrapper (Sorry for the inconvenience.) |
XArray reworked some of the classes that support our backend, so we need to update. This also means that this (admittedly under exposed) code only works with xarray >=0.10.2, so bump the requirements for it.
MNT: Fix with xarray 0.10.2 (Fixes #192)
Looks like a new Xarray version has broken master.
The text was updated successfully, but these errors were encountered: