Skip to content

failing upstream-dev polyfit warning test #4565

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

Closed
keewis opened this issue Nov 4, 2020 · 1 comment · Fixed by #4568
Closed

failing upstream-dev polyfit warning test #4565

keewis opened this issue Nov 4, 2020 · 1 comment · Fixed by #4568

Comments

@keewis
Copy link
Collaborator

keewis commented Nov 4, 2020

In xarray/tests/test_dataset.py::TestDataset::test_polyfit_warnings, the second call to polyfit:

ds.var1.polyfit("dim2", 10, full=True)

emits a warning with the current upstream-dev pandas:

xarray/tests/test_dataset.py::TestDataset::test_polyfit_warnings
  .../xarray/core/alignment.py:307: FutureWarning: Index.__or__ operating as a set operation is deprecated, in the future this will be a logical operation matching Series.__or__.  Use index.union(other) instead
    index = joiner(matching_indexes)

since the test makes sure only the first call emits a warning (a np.RankWarning), the test fails.

@mathause
Copy link
Collaborator

mathause commented Nov 4, 2020

Our alignment is based on this. So this may have quite some implications. I am surprised there are not more warnings (by number) in the test suite.

For reference: pandas-dev/pandas#37374

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

Successfully merging a pull request may close this issue.

2 participants