Skip to content

Commit

Permalink
Use correct accessor for SBML group name (#1369)
Browse files Browse the repository at this point in the history
* implement change from #1302

* RNs
  • Loading branch information
cdiener authored Apr 8, 2024
1 parent 0eb90d4 commit fd1faa6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions release-notes/next-release.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

* Fixes the incorrect bounds in the CycleFree loop removal.
* Fixes reduced costs and shadow prices not available when using non-convex models.
* Fixed a bug with SBML group parsing that affects the Debian package.

## Other

Expand Down
2 changes: 1 addition & 1 deletion src/cobra/io/sbml.py
Original file line number Diff line number Diff line change
Expand Up @@ -1080,7 +1080,7 @@ def process_association(ass: "libsbml.FbcAssociation") -> Union[BoolOp, Name]:
if f_replace and F_REACTION in f_replace:
obj_id = f_replace[F_REACTION](obj_id)
cobra_member = cobra_model.reactions.get_by_id(obj_id)
cobra_member.subsystem = group.name
cobra_member.subsystem = group.getName()
elif typecode == libsbml.SBML_FBC_GENEPRODUCT:
if f_replace and F_GENE in f_replace:
obj_id = f_replace[F_GENE](obj_id)
Expand Down

0 comments on commit fd1faa6

Please sign in to comment.