Repository navigation
Conversation
dweindl
force-pushed
the
v2-model-id-perf
branch
from
December 2, 2026 09:37
fd84c32 to
4d3a931
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #655 +/- ##
=======================================
Coverage 81.45% 81.45%
=======================================
Files 76 76
Lines 8906 8917 +11
Branches 1631 1633 +2
=======================================
+ Hits 7254 7263 +9
- Misses 1171 1172 +1
- Partials 481 482 +1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
dweindl
force-pushed
the
v2-model-id-perf
branch
from
December 2, 2026 09:49
4d3a931 to
9c8cc5a
Compare
`CheckGloballyUniqueIds` and ID generation in `reparametrize_log` checked each ID with `has_entity_with_id`, which scans the whole SBML model per call (~0.7 ms for Froehlich_CellSystems2018). Both now use the new `Model._get_model_entity_checker`. For SBML models, it collects all SBML IDs once and only calls `has_entity_with_id` for IDs that occur in the model, so the results don't change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
dweindl
force-pushed
the
v2-model-id-perf
branch
from
December 2, 2026 09:56
9c8cc5a to
9e58eff
Compare
dweindl
marked this pull request as ready for review
December 2, 2026 09:58
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CheckGloballyUniqueIdsand ID generation inreparametrize_logchecked each ID separately withhas_entity_with_id, which for SBML models scans the whole model per call (~0.7 ms for Froehlich_CellSystems2018; ~25 s in total for the lint check and ~5 s for reparametrization). Both now use the new privateModel._get_model_entity_checker. For SBML models, it collects all SBML IDs once and only callshas_entity_with_idfor IDs that occur in the model, so the results don't change. Other model types usehas_entity_with_idas before.Collecting the IDs via
getListOfAllElementstakes ~0.4 s for Froehlich_CellSystems2018 and scales roughly quadratically with the model size, which pays off when many IDs are checked.petab1to2for Froehlich_CellSystems2018 takes ~20 s less (reparametrize="none": 38 s → 20 s,"all": 65 s → 40 s) with identical output.Relates to #652.
🤖 Generated with Claude Code