Skip to content

mitigate squeezing for [integer] selections #59

@tomsail

Description

@tomsail

Typically as @jurjendejong mentioned in #56,

ds.isel(time=[0]).Z.data

fails with the following error:

IndexError: too many indices for array: array is 2-dimensional, but 3 were indexed

this is due to the

return data.squeeze()

that is too simple for such selections.

Something needs to be implemented for the following selections types:

ds.isel(time=[0]).Z.data
ds.isel(node=[0]).Z.data
ds.isel(plan=[0]).Z.data

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions