From 197437546563b40df8e6394f3aa8c82cbd84827f Mon Sep 17 00:00:00 2001 From: "Frank T. Bergmann" Date: Thu, 21 Sep 2023 10:38:49 +0200 Subject: [PATCH] - fix reading to be compatible with newer versions of libsbml --- pyenzyme/enzymeml/tools/enzymemlreader.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyenzyme/enzymeml/tools/enzymemlreader.py b/pyenzyme/enzymeml/tools/enzymemlreader.py index f246216..c02aed6 100644 --- a/pyenzyme/enzymeml/tools/enzymemlreader.py +++ b/pyenzyme/enzymeml/tools/enzymemlreader.py @@ -183,7 +183,7 @@ def readFromFile(self, path: str) -> EnzymeMLDocument: @staticmethod def _sboterm_to_enum(sbo_term: int) -> Optional[SBOTerm]: try: - sbo_string: str = libsbml.SBO_intToString(sbo_term) + sbo_string: str = libsbml.SBO.intToString(sbo_term) if len(sbo_string) == 0: return None @@ -568,7 +568,7 @@ def _getElements( species_id = species_ref.getSpecies() stoichiometry = 1.0 if modifiers else species_ref.getStoichiometry() constant = True if modifiers else species_ref.getConstant() - sbo_term = libsbml.SBO_intToString(species_ref.getSBOTerm()) + sbo_term = libsbml.SBO.intToString(species_ref.getSBOTerm()) if sbo_term: ontology = SBOTerm(sbo_term)