Skip to content

fix: read notes maps in readYAMLmodel - #12

Merged
edkerk merged 2 commits into
developfrom
fix/yaml-nested-notes
Oct 23, 2026
Merged

edkerk merged 2 commits into
developfrom
fix/yaml-nested-notes

Conversation

@edkerk

@edkerk edkerk commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

Main improvements in this PR:

  • fix:
    • readYAMLmodel: a metabolite or reaction whose notes is a map, as cobrapy and raven-toolbox write the notes of other tools (for example geckopy's enzyme_usage and geckopy_warning), stopped the read with "Unknown entry in yaml file", so GECKO could not load an ecModel saved by geckopy. The map is now read into metNotes or rxnNotes as text: a note entry as its value, other entries as key: value, list values as comma-separated items, entries separated by ; . Its lines are recognised by their indentation, so a key named like an entry field (id, name, annotation) stays in the note.

Instructions on merging this PR:

  • This PR has develop as target branch, and will be resolved with a squash-merge.
  • This PR has main as target branch, and will be resolved as described here.

cobrapy and raven-toolbox write other tools' notes on metabolites and
reactions as a map under notes. readYAMLmodel stopped with 'Unknown entry'
on them; it now reads each entry into metNotes or rxnNotes.
A key in a notes map named like an entry field (id, name, annotation) was
read as that field, and list values in the map lost their items.
@github-actions

Copy link
Copy Markdown
Contributor

Function test results

433 tests   426 ✅  1m 14s ⏱️
 24 suites    7 💤
  1 files      0 ❌

Results for commit 0d81bf1.

@edkerk
edkerk merged commit 0406546 into develop Oct 23, 2026
4 checks passed
@edkerk
edkerk deleted the fix/yaml-nested-notes branch October 23, 2026 21:13
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