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

Simplify missing value handling in xarray.corr #6025

Merged
merged 1 commit into from
Nov 28, 2021

Conversation

shoyer
Copy link
Member

@shoyer shoyer commented Nov 24, 2021

This PR simplifies the fix from #5731, specifically for the benefit of xarray.corr. There is no need to use map_blocks instead of using where directly.

It is a basically an alternative version of #5284. It is potentially slightly less efficient to do this masking step when unnecessary, but I doubt this makes a noticeable performance difference in practice (and I doubt this optimization is useful insdie map_blocks, anyways).

@dcherian
Copy link
Contributor

Much better! Thanks. Sorry for being quick on merging the earlier PR.

@dcherian dcherian added the plan to merge Final call for comments label Nov 24, 2021
@dcherian dcherian merged commit 23d345b into pydata:main Nov 28, 2021
dcherian added a commit to dcherian/xarray that referenced this pull request Dec 2, 2021
* upstream/main:
  fix grammatical typo in docs (pydata#6034)
  Use condas dask-core in ci instead of dask to speedup ci and reduce dependencies (pydata#6007)
  Use complex nan by default when interpolating out of bounds (pydata#6019)
  Simplify missing value handling in xarray.corr (pydata#6025)
  Add pyXpcm to Related Projects doc page (pydata#6031)
  Make xr.corr and xr.map_blocks work without dask (pydata#5731)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plan to merge Final call for comments
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants