Skip to content

query not possible on unnamed DataArray #5492

Open
@benHeid

Description

@benHeid

What happened:
The query operation crashes if I execute it on an unamed dataarray.

What you expected to happen:
The query operation is executed sucessfully

Minimal Complete Verifiable Example:

import xarray as xr
import numpy as np

da = xr.DataArray(np.arange(0, 5, 1), dims="x")
da.query(x="x > 1")

Anything else we need to know?:

Environment:

  • Python 3.8
  • Xarray 0.18.2
  • OS: Windows

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