Skip to content

Contact Object Serialization#29

Merged
dwhswenson merged 10 commits intomasterfrom
serialization
Jan 8, 2018
Merged

Contact Object Serialization#29
dwhswenson merged 10 commits intomasterfrom
serialization

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