Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

query not possible on unnamed DataArray #5492

Open
benHeid opened this issue Jun 18, 2021 · 1 comment · May be fixed by #5493
Open

query not possible on unnamed DataArray #5492

benHeid opened this issue Jun 18, 2021 · 1 comment · May be fixed by #5493
Labels

Comments

@benHeid
Copy link

benHeid commented Jun 18, 2021

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
@TomNicholas TomNicholas linked a pull request Jun 18, 2021 that will close this issue
4 tasks
@TomNicholas
Copy link
Member

Thanks for flagging this @benHeid , #5493 should fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants