Skip to content

mitigate squeezing for [integer] selections #59

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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