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

Contact Object Serialization #29

Merged
merged 10 commits into from
Jan 8, 2018
Merged

Contact Object Serialization #29

merged 10 commits into from
Jan 8, 2018

Conversation

dwhswenson
Copy link
Owner

@dwhswenson dwhswenson commented Dec 7, 2017

Serializing objects will facilitate task-based parallelization. This provides serialization to Python dicts or to JSON strings.

  • Serialization for ContactMap (with tests)
  • Serialization for ContactFrequency (with tests)
  • Serialization for ContactDifference (with tests)
  • Update docs

NOTE: One limitation (as of the current implementation) is that subclasses (or duck-punched versions) of contact objects cannot be stored as the components of a ContactDifference. In the future, I may try to allow subclasses, but you can't count on duck-typing to work.

@dwhswenson dwhswenson changed the title [WIP] Contact Object Serialization Contact Object Serialization Jan 8, 2018
@dwhswenson dwhswenson merged commit 7e03cb4 into master Jan 8, 2018
@dwhswenson dwhswenson deleted the serialization branch January 8, 2018 14:02
@dwhswenson dwhswenson mentioned this pull request Jan 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant