Skip to content

Indexing not properly working with object dtype element ? #2414

@davidtrem

Description

@davidtrem

Small "working" demo of the observed issue:

import xarray as xr
import numpy as np
er = xr.DataArray(np.array((np.arange(3), np.arange(6)))) # dtype=object because two different vector size
print(er.data[0]) # Does work
print(er[0]) # Does not work (ValueError)

#I'm a bit puzzled...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions