8000 Low-hanging performance improvements by mdboom · Pull Request #5664 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Low-hanging performance improvements #5664

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 7 commits into from
Dec 22, 2015
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix pickle
  • Loading branch information
mdboom committed Dec 15, 2015
commit 26d3e2550ed3c41af67307ff1670cffa01442e66
2 changes: 1 addition & 1 deletion lib/matplotlib/tests/test_pickle.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ def test_transform():
# Check parent -> child links of TransformWrapper.
assert_equal(obj.wrapper._child, obj.composite)
# Check child -> parent links of TransformWrapper.
assert_equal(list(obj.wrapper._parents.values()), [obj.composite2])
assert_equal([v() for v in obj.wrapper._parents.values()], [obj.composite2])
# Check input and output dimensions are set as expected.
assert_equal(obj.wrapper.input_dims, obj.composite.input_dims)
assert_equal(obj.wrapper.output_dims, obj.composite.output_dims)
Expand Down
3 changes: 2 additions & 1 deletion lib/matplotlib/transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -1567,7 +1567,8 @@ def __getstate__(self):
'input_dims': self.input_dims,
'output_dims': self.output_dims,
# turn the weak-values dictionary into a normal dictionary
'parents': dict((k, v()) for (k, v) in six.iteritems(self._parents))
'parents': dict((k, v()) for (k, v) in
six.iteritems(self._parents))
}

def __setstate__(self, state):
Expand Down
0