Skip to content

Rename of LazilyOuterIndexedArray to LazilyIndexedArray breaks rioxarray #5111

Closed
@alexamici

Description

@alexamici

What happened:

With current xarray master the rioxarray.open_rasterio crashes.

What you expected to happen:

With the released version 0.17.0 of xarray the open works as expected.

Minimal Complete Verifiable Example:

>>> import rioxarray
>>> rioxarray.open_rasterio("myfile.tif")
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-7-fedc16472305> in <module>
----> 1 da = rioxarray.open_rasterio("../../../FLAIR-PROC/rome-lockdown-2020/georeferenced/20200309+0130+417_VV-20200109-20200115-EPSG:32632-5.human-activity.tif")
      2 da

/usr/local/Caskroom/miniconda/base/envs/BOP/lib/python3.8/site-packages/rioxarray/_io.py in open_rasterio(filename, parse_coordinates, chunks, cache, lock, masked, mask_and_scale, variable, group, default_name, **open_kwargs)
    820 
    821     da_name = attrs.pop("NETCDF_VARNAME", default_name)
--> 822     data = indexing.LazilyOuterIndexedArray(
    823         RasterioArrayWrapper(
    824             manager,

AttributeError: module 'xarray.core.indexing' has no attribute 'LazilyOuterIndexedArray'

Anything else we need to know?:

LazilyOuterIndexedArray was recently renamed to LazilyIndexedArray by @aurghs in #4810 after a suggestion from @shoyer #4810 (comment)

Adding an alias would make the transition easier.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions