Skip to content

write_yaml_model omits the enzymes key of an ec reaction without enzymes - #191

Merged
edkerk merged 1 commit into
developfrom
fix/ec-rxn-without-enzymes
Nov 1, 2026
Merged

edkerk merged 1 commit into
developfrom
fix/ec-rxn-without-enzymes

Conversation

@edkerk

@edkerk edkerk commented Nov 1, 2026

Copy link
Copy Markdown
Collaborator

A reaction of the ec-rxns section with an empty enzyme map is written without an enzymes key, as RAVEN's writeYAMLmodel does. The reader treats a missing key as an empty map and still reads the content-less enzymes: !!omap and enzymes: !!omap [] of earlier files. Tests cover the saved text, a round trip, and all three forms on loading.

read_yaml_model reads a missing enzymes key, a content-less enzymes: !!omap and enzymes: !!omap [] as an empty enzyme map.
@edkerk
edkerk merged commit 6a28c71 into develop Nov 1, 2026
10 checks passed
@edkerk
edkerk deleted the fix/ec-rxn-without-enzymes branch November 1, 2026 10:08
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