Skip to content

fix: drop stale compMiriams in mergeCompartments - #685

Merged
edkerk merged 1 commit into
develop3from
fix/mergecompartments-compmiriams
Jul 17, 2026
Merged

fix: drop stale compMiriams in mergeCompartments#685
edkerk merged 1 commit into
develop3from
fix/mergecompartments-compmiriams

Conversation

@edkerk

@edkerk edkerk commented Jul 17, 2026

Copy link
Copy Markdown
Member

Main improvements in this PR:

  • fix:
    • mergeCompartments rebuilt comps/compNames/compOutside for the single merged compartment but left compMiriams at the original length, desyncing it from comps and breaking downstream permuteModel/exportModel/writeYAMLmodel. The per-compartment annotations no longer apply once everything is merged, so the field is dropped.
  • documentation:
    • Test in tManipulation.m.

Instructions on merging this PR:

  • This PR has develop3 as target branch, and will be resolved with a squash-merge.

mergeCompartments rebuilds comps, compNames and compOutside for the single
merged 'System' compartment but left compMiriams untouched, so a model with
per-compartment MIRIAM annotations came out with a compMiriams still at the
original number of compartments while comps was length 1. That desync breaks
downstream permuteModel/exportModel/writeYAMLmodel. The annotations no longer
apply once every compartment is merged into one, so the field is now dropped.
@github-actions

Copy link
Copy Markdown

Function test results

290 tests   264 ✅  1m 8s ⏱️
 25 suites   26 💤
  1 files      0 ❌

Results for commit f26902f.

@edkerk
edkerk merged commit cf8a446 into develop3 Jul 17, 2026
4 checks passed
@edkerk
edkerk deleted the fix/mergecompartments-compmiriams branch July 17, 2026 19:56
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.

1 participant