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 interp bug when indexer shares coordinates with array #3758

Merged
merged 8 commits into from
Mar 13, 2020

Conversation

huard
Copy link
Contributor

@huard huard commented Feb 6, 2020

Replaces #3262 (I think).

@pep8speaks
Copy link

pep8speaks commented Feb 6, 2020

Hello @huard! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2020-03-02 19:48:44 UTC

@huard huard changed the title Add test demonstrating interp bug for nd indexes sharing coordinate with array Fix interp bug when indexer shares coordinates with array Feb 7, 2020
@huard huard requested a review from dcherian February 7, 2020 16:12
@max-sixty
Copy link
Collaborator

Thanks for the PR and apologies no one has reviewed this @huard

I unfortunately don't know this code well. @fujiisoup could you have a look please?

@huard
Copy link
Contributor Author

huard commented Mar 12, 2020

@max-sixty Thanks for taking the time. This PR and #3733 are needed for quantile mapping methods @aulemahal and I are working on.

@max-sixty
Copy link
Collaborator

Great. I'm merging. Sorry this took a while and appreciate your contribution @huard.

@max-sixty max-sixty merged commit 0d95eba into pydata:master Mar 13, 2020
dcherian added a commit to dcherian/xarray that referenced this pull request Mar 22, 2020
* upstream/master:
  add spacing in the versions section of the issue report (pydata#3876)
  map_blocks: allow user function to add new unindexed dimension. (pydata#3817)
  Delete associated indexes when deleting coordinate variables. (pydata#3840)
  remove macos build while waiting for libwebp fix (pydata#3875)
  Fix html repr on non-str keys (pydata#3870)
  Allow ellipsis to be used in stack (pydata#3826)
  Improve where docstring (pydata#3836)
  Add DataArray.pad, Dataset.pad, Variable.pad (pydata#3596)
  Fix some warnings (pydata#3864)
  Feature/weighted (pydata#2922)
  Fix recombination in groupby when changing size along the grouped dimension (pydata#3807)
  Blacken the doctest code in docstrings (pydata#3857)
  Fix multi-index with categorical values. (pydata#3860)
  Fix interp bug when indexer shares coordinates with array (pydata#3758)
  Fix alignment with join="override" when some dims are unindexed (pydata#3839)
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.

interp and reindex should work for 1d -> nd indexing
3 participants