Skip to content

Remove duck_array_ops.as_like_arrays() #3204

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

Merged
merged 3 commits into from
Aug 12, 2019
Merged

Conversation

shoyer
Copy link
Member

@shoyer shoyer commented Aug 11, 2019

It has some questionable coercion logic that no longer seems to be necessary.

Not a user facing change.

  • Passes black . && mypy . && flake8

shoyer added 2 commits August 11, 2019 14:13
It has some questionable coercion logic that no longer seems to be necessary.
@max-sixty max-sixty self-requested a review August 11, 2019 21:45
@shoyer shoyer mentioned this pull request Aug 11, 2019
@shoyer
Copy link
Member Author

shoyer commented Aug 11, 2019

I did have to disable a few of the sparse tests that entailed element-wise comparison between dense and sparse arrays. This currently isn't supported by sparse (but perhaps it should be): pydata/sparse#270

@crusaderky crusaderky self-requested a review August 12, 2019 12:36
@shoyer shoyer merged commit fc44bae into pydata:master Aug 12, 2019
@shoyer shoyer deleted the no_as_like_arrays branch August 12, 2019 15:06
param(
do("broadcast_equals", make_xrvar({"x": 10, "y": 5})),
False,
marks=xfail(reason="https://github.com/pydata/sparse/issues/270"),
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This issue is fixed, so we should be able to re-enable these tests after the next sparse release.

dcherian added a commit to dcherian/xarray that referenced this pull request Aug 14, 2019
* upstream/master:
  chunk sparse arrays (pydata#3202)
  Annotations for .data_vars() and .coords() (pydata#3207)
  Remove duck_array_ops.as_like_arrays() (pydata#3204)
  Match mypy version between CI and pre-commit hook (pydata#3203)
  BUG fix +test .sel method gives error with float32 values (pydata#3153)
  fix precommit file (pydata#3201)
  Enforce mypy compliance in CI (pydata#3197)
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.

3 participants