-
-
Notifications
You must be signed in to change notification settings - Fork 12
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 pickling support to C++ solver dummy #30
Conversation
Some questions from my side, otherwise it looks good. |
I get an invalid state error running: import pickle
import micro_dummy
sim = micro_dummy.MicroSimulation(2)
pickle.loads(pickle.dumps(sim)) I think this is because |
…ummy.cpp Co-authored-by: erikscheurer <[email protected]>
This PR adds functionality to allow for pickling and unpickling of the C++ micro simulation code in the C++ solver dummy. This is based on the pickling support documentation of pybind11.