Skip to content

1607 allow abm pickling - #1608

Merged
reneSchm merged 7 commits into
mainfrom
1607-allow-abm-pickling
Dec 1, 2026
Merged

reneSchm merged 7 commits into
mainfrom
1607-allow-abm-pickling

Conversation

@reneSchm

@reneSchm reneSchm commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

Changes and Information

Please briefly list the changes (main added features, changed items, or corrected bugs) made:

  • Make ABM bindings serializable.
  • Enable deep-copy by default (if the C++ class is copyable).
  • Bind constructor from model and make time accessible for abm.Simulation.

If need be, add additional information and what the reviewer should look out for in particular:

Merge Request - Guideline Checklist

Please check our git workflow. Use the draft feature if the Pull Request is not yet ready to review.

Checks by code author

  • Every addressed issue is linked (use the "Closes #ISSUE" keyword below).
  • New code adheres to coding guidelines.
  • No large data files have been added (files should in sum not exceed 100 KB, avoid PDFs, Word docs, etc.).
  • Tests are added for new functionality and a local test run was successful (with and without OpenMP).
  • Appropriate documentation within the code (Doxygen) for new functionality has been added in the code.
  • Appropriate external documentation (ReadTheDocs) for new functionality has been added to the online documentation and checked in the preview.
  • Proper attention to licenses, especially no new third-party software with conflicting license has been added.
  • (For ABM development) Checked benchmark results and ran and posted a local test above from before and after development to ensure performance is monitored.

Checks by code reviewer(s)

  • Corresponding issue(s) is/are linked and addressed.
  • Code is clean of development artifacts (no deactivated or commented code lines, no debugging printouts, etc.).
  • Appropriate unit tests have been added, CI passes, code coverage and performance is acceptable (did not decrease).
  • No large data files added in the whole history of commits(files should in sum not exceed 100 KB, avoid PDFs, Word docs, etc.).
  • On merge, add 2-5 lines with the changes (main added features, changed items, or corrected bugs) to the merge-commit-message. This can be taken from the briefly-list-the-changes above (best case) or the separate commit messages (worst case).

@reneSchm
reneSchm requested a review from HenrZu November 20, 2026 17:21
HenrZu
HenrZu previously requested changes Nov 23, 2026

@HenrZu HenrZu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

So, with this PR, we can pickel a ABM model. It would be great if we can bind the correct ABM Simulator, to continue a simulation with a pickled model. Currently, we only have bindings for the Simulation(timepoint,num_agegroups) constructor.

However, it would also be great, if someone from the ABM team has a look in this PR.

@reneSchm
reneSchm requested a review from xsaschako November 23, 2026 19:27
@xsaschako

Copy link
Copy Markdown
Member

Will look into, when ci is resolved.

Bildschirmfoto 2026-11-25 um 10 22 17

@HenrZu

HenrZu commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

wait for #1606

@codecov

codecov Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.52%. Comparing base (f0c2cf2) to head (db36873).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1608   +/-   ##
=======================================
  Coverage   97.52%   97.52%           
=======================================
  Files         190      190           
  Lines       16104    16106    +2     
=======================================
+ Hits        15705    15707    +2     
  Misses        399      399           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

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

@xsaschako xsaschako left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm 👌

@reneSchm
reneSchm dismissed HenrZu’s stale review December 1, 2026 12:29

Requested change was made, and approved by xsaschako.

@reneSchm
reneSchm merged commit 0379c54 into main Dec 1, 2026
64 checks passed
@reneSchm
reneSchm deleted the 1607-allow-abm-pickling branch December 1, 2026 12:31
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.

3 participants