Skip to content

Pickle the whole Quantity __dict__ - #1

Merged
ryanfox merged 1 commit into
ryanfox:wrap-angle-picklingfrom
mdboom:unit/pickling-quantities
Jan 18, 2014
Merged

ryanfox merged 1 commit into
ryanfox:wrap-angle-picklingfrom
mdboom:unit/pickling-quantities

Conversation

@mdboom

@mdboom mdboom commented Jan 17, 2014

Copy link
Copy Markdown

This is a PR against astropy#1961 which pickles the entire __dict__ of the Quantity object so that subclasses of Quantity don't also have to worry about writing explicit __reduce__ and __setstate__ methods. This essentially combines the Numpy array pickling (which is custom and uses __reduce__) with the standard way that Python objects are pickled.

@ryanfox
ryanfox merged commit 901a2e6 into ryanfox:wrap-angle-pickling Jan 18, 2014
@mdboom
mdboom deleted the unit/pickling-quantities branch May 21, 2014 23:58
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.

2 participants