Repository navigation
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #656 +/- ##
==========================================
+ Coverage 81.45% 81.52% +0.07%
==========================================
Files 76 76
Lines 8906 8919 +13
Branches 1631 1636 +5
==========================================
+ Hits 7254 7271 +17
+ Misses 1171 1169 -2
+ Partials 481 479 -2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
`NaN` in the condition table means that the model value is used. For model parameters, `_apply_condition_parameters` used the SBML `value` attribute and ignored initial assignments; `get_model_for_condition` then also removed the initial assignment. Now, the parameter keeps the model value from the initial mapping, which takes numeric initial assignments into account. Parameters with non-numeric initial assignments remain unmapped, so that the initial assignment applies. If such a parameter is unmapped for only one of preequilibration and simulation, raise a `ValueError` instead of letting `merge_preeq_and_sim_pars_condition` silently use the other value. Closes PEtab-dev#649. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
dweindl
force-pushed
the
fix-condition-nan-initial-assignment
branch
from
December 2, 2026 10:56
9f903b9 to
2e107cc
Compare
dweindl
marked this pull request as ready for review
December 2, 2026 11:18
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.
NaNin the condition table means that the model value is used. For model parameters,_apply_condition_parametersused the SBMLvalueattribute and ignored initial assignments, andget_model_for_conditionthen also removed the initial assignment.Now, for a
NaNentry, the parameter keeps the model value from the initial mapping (get_free_parameter_ids_with_values), which takes numeric initial assignments into account. Parameters with non-numeric initial assignments remain unmapped, so that the initial assignment applies, consistent with #643. As a consequence, per-condition mappings may differ in their keys.If such a parameter is unmapped for only one of the preequilibration and simulation conditions,
get_optimization_to_simulation_parameter_mappingraises aValueError. Otherwise,merge_preeq_and_sim_pars_conditionwould silently use the other value for both.Also fixes an
AttributeErroringet_model_for_conditionfor unmapped parameters if there is no parameter table.Closes #649.
🤖 Generated with Claude Code