-
Notifications
You must be signed in to change notification settings - Fork 91
Numpy Updates to Tests #2638
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
Numpy Updates to Tests #2638
Conversation
Codecov Report
@@ Coverage Diff @@
## main #2638 +/- ##
=====================================
Coverage 99.9% 99.9%
=====================================
Files 297 297
Lines 27071 27071
=====================================
Hits 27027 27027
Misses 44 44
Continue to review full report at Codecov.
|
| plot_data = fig.to_dict()["data"][0] | ||
| assert plot_data["type"] == "bar" | ||
| assert plot_data["x"] == ["0", "1", "2"] | ||
| assert all(plot_data["x"] == ["0", "1", "2"]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The original error here comes from the data typing in the dictionary. Before, in plotly <5.1.0, plot_data["x"] was of type list. Now it's an array. Casting it to a list fixes it.
…dated array/list comparison.
…d array/list comparison.
docs/source/release_notes.rst
Outdated
| * Documentation Changes | ||
| * To avoid local docs build error, only add warning disable and download headers on ReadTheDocs builds, not locally :pr:`2617` | ||
| * Testing Changes | ||
| * Updated partial_dependence tests to change the element-wise comparison per the Numpy upgrade :pr:`2638` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pushing a correction to this to say Plotly instead of numpy.
freddyaboulton
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @chukarsten !
| @@ -1,5 +1,6 @@ | |||
| docutils>=0.15.2,<0.17 | |||
| pydata-sphinx-theme>=0.3.1 | |||
| astroid<=2.6.6 | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's this for?
Fixes tests to support changes to list comparison.