Fix for unpickling polar plot issue #4068#4264
Fix for unpickling polar plot issue #4068#4264tacaswell merged 4 commits intomatplotlib:masterfrom olanmatt:fix_4068
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 |
lib/matplotlib/projections/polar.py
Outdated
There was a problem hiding this comment.
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
PolarAffineoflib/matplotlib/projections/polar.pyreturned an empty state when being pickled because of an unimplemented__getstate__function. Removing this function resolved the reported exception and restored the expected behaviour.