-
Notifications
You must be signed in to change notification settings - Fork 32
Enable pickling of ModelPtr
#2985
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
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2985 +/- ##
==========================================
- Coverage 76.48% 75.83% -0.66%
==========================================
Files 308 308
Lines 20136 20149 +13
Branches 1499 1500 +1
==========================================
- Hits 15402 15280 -122
- Misses 4721 4856 +135
Partials 13 13
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Enable pickling of `ModelPtr` for use in multiprocessing contexts.
d959294 to
624b4b3
Compare
| model_module = sbml_example_presimulation_module | ||
| model = model_module.get_model() | ||
|
|
||
| assert ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we are already testing other settings programmatically in corresponding tests for get_model_settings, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct.
Ensure `Model.module` gets set during `Model.clone()`. So far, this was only set during `model_module.get_model`. Fixes unpickling of cloned Models. Also implement `ModelPtr.__reduce__` in addition to `Model.__reduce__` (AMICI-dev#2985).
Ensure `Model.module` gets set during `Model.clone()`. So far, this was only set during `model_module.get_model`. Fixes unpickling of cloned Models. Also implement `ModelPtr.__reduce__` in addition to `Model.__reduce__` (AMICI-dev#2985).
Ensure `Model.module` gets set during `Model.clone()`. So far, this was only set during `model_module.get_model`. Fixes unpickling of cloned Models. Also implement `ModelPtr.__reduce__` in addition to `Model.__reduce__` (AMICI-dev#2985).
Ensure `Model.module` gets set during `Model.clone()`. So far, this was only set during `model_module.get_model`. Fixes unpickling of cloned Models. Also implement `ModelPtr.__reduce__` in addition to `Model.__reduce__` (#2985).
Enable pickling of
ModelPtrfor use in multiprocessing contexts.Related to #1126.