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

Fix Dataset.where with drop=True and mixed dims #6690

Merged
merged 3 commits into from
Jun 12, 2022
Merged

Conversation

headtr1ck
Copy link
Collaborator

@headtr1ck headtr1ck commented Jun 12, 2022

@headtr1ck
Copy link
Collaborator Author

Do you think a benchmark is required for this new method?
I actually did not check the runtime yet...

@headtr1ck
Copy link
Collaborator Author

Is this a breaking changes if users might expect the old behavior?

@max-sixty
Copy link
Collaborator

This looks great! Thanks @headtr1ck .

I don't think this is doing any additional passes of the data — it's just computing metadata like dims — so I don't think it strictly needs a benchmark. (Though never opposed to more benchmarks...).

@max-sixty max-sixty merged commit 3a32072 into pydata:main Jun 12, 2022
@headtr1ck headtr1ck deleted the where branch June 13, 2022 18:06
dcherian added a commit to bzah/xarray that referenced this pull request Jun 24, 2022
* main: (129 commits)
  docs on specifying chunks in to_zarr encoding arg (pydata#6542)
  [skip-ci] List count under Aggregation (pydata#6711)
  Add `Dataset.dtypes` property (pydata#6706)
  try to import `UndefinedVariableError` from the new location (pydata#6701)
  DOC: note of how `chunks` can be defined (pydata#6696)
  pdyap version dependent client.open_url call (pydata#6656)
  use `pytest-reportlog` to generate upstream-dev CI failure reports (pydata#6699)
  [pre-commit.ci] pre-commit autoupdate (pydata#6694)
  Bump actions/setup-python from 3 to 4 (pydata#6692)
  Fix Dataset.where with drop=True and mixed dims (pydata#6690)
  pass kwargs through from save_mfdataset to to_netcdf (pydata#6686)
  Docs: indexing.rst finetuning (pydata#6685)
  use micromamba instead of mamba (pydata#6674)
  install the development version of `matplotlib` into the upstream-dev CI (pydata#6675)
  Add whatsnew section for v2022.06.0
  release notes for 2022.06.0rc0
  release notes for the pre-release (pydata#6676)
  more testpypi workflow fixes (pydata#6673)
  thin: add examples (pydata#6663)
  Update multidimensional-coords.ipynb (pydata#6672)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Dataset.where(x, drop=True) behaves inconsistent
2 participants