-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Fix for unpickling polar plot issue #4068 #4264
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
Conversation
Travis failure in docs build is not related to this Pull request. Fixed by #4267 |
@jenshnielsen Thanks for the heads up! Would it be possible to get the tests restarted? |
Here's what we've noticed. The problem arises because It seems like other children of |
Can you add a test? https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/tests/test_pickle.py has some tests already (and while you are in there can you add an |
def __getstate__(self): | ||
return {} | ||
|
||
|
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.
Nit-pick: We leave 2 newlines between top level module objects. (I think the PEP8 tests will probably catch this)
I'm OK with the change. We can't be certain that this wont break other classes, which may have attributes which aren't picklable, but we can deal with that as the occur (should be a simple fix when it crops up). 👍 |
Whitespace issue fixed, @cleanup decorator added to tests, and a minimum test created. There was a funny error in one of the Travis test suites, does it simply need a restart? |
Yes, I restarted that test. Looks like apt timed out or some-such. |
Thank you! |
BUG : Fix for unpickling polar plot closes #4068
BUG : Fix for unpickling polar plot closes #4068
cherry-picked to color_overhaul as 592818a |
This implements a fix for the bug documented in issue #4068
PolarAffine
oflib/matplotlib/projections/polar.py
returned an empty state when being pickled because of an unimplemented__getstate__
function. Removing this function resolved the reported exception and restored the expected behaviour.