Skip to content
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

Add deepcopy and pickle support to figures and graph objects #1191

Merged
merged 5 commits into from
Sep 25, 2018

Conversation

jonmmease
Copy link
Contributor

This PR adds support for deepcopy and pickle operations on figures and graph_objs.

This PR addresses:

This does not address the performance optimizations described in #1078. Support for pickle and deepcopy is added by implementing a __reduce__ method that simply calls the figure/graph_obj constructor with the dict representation of the object.

To lay a foundation for potential future optimization work, this PR also adds support for performing deepcopy on all validator classes.

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

Successfully merging this pull request may close these issues.

None yet

1 participant