Skip to content

Fix setting Model.module#2990

Merged
dweindl merged 2 commits intoAMICI-dev:mainfrom
dweindl:fix_model_module
Oct 29, 2025
Merged

Fix setting Model.module#2990
dweindl merged 2 commits intoAMICI-dev:mainfrom
dweindl:fix_model_module

Conversation

@dweindl
Copy link
Member

@dweindl dweindl commented Oct 27, 2025

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).

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).
@dweindl dweindl self-assigned this Oct 27, 2025
@codecov
Copy link

codecov bot commented Oct 27, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 75.79%. Comparing base (65deb50) to head (b593fe3).
⚠️ Report is 100 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2990      +/-   ##
==========================================
- Coverage   76.48%   75.79%   -0.70%     
==========================================
  Files         308      308              
  Lines       19540    19540              
  Branches     1499     1499              
==========================================
- Hits        14945    14810     -135     
- Misses       4582     4717     +135     
  Partials       13       13              
Flag Coverage Δ
cpp 72.89% <ø> (ø)
cpp_python 38.26% <ø> (ø)
petab 38.86% <ø> (ø)
python 69.62% <ø> (ø)
sbmlsuite-jax ?

Flags with carried forward coverage won't be shown. Click here to find out more.
see 6 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@dweindl dweindl marked this pull request as ready for review October 29, 2025 06:34
@dweindl dweindl requested a review from a team as a code owner October 29, 2025 06:34
@dweindl dweindl merged commit 25adebf into AMICI-dev:main Oct 29, 2025
21 of 23 checks passed
@dweindl dweindl deleted the fix_model_module branch October 29, 2025 10:15
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