Skip to content

Commit

Permalink
Replace libsbml.SyntaxChecker_isValidSBMLSId which magically disappea…
Browse files Browse the repository at this point in the history
…red from libsbml
  • Loading branch information
dweindl committed Jun 18, 2024
1 parent e2c7b2a commit 344b23f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion isrene/sbml/sbml_pint.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def _unit_definition_from_pint(
# turn into a valid SBML ID
unit_id = unit_id.removeprefix("1_")

if not libsbml.SyntaxChecker_isValidSBMLSId(unit_id):
if not libsbml.SyntaxChecker().isValidSBMLSId(unit_id):
raise AssertionError(
f"Generated unit ID for '{unit}' is invalid: " f"{unit_id}"
)
Expand Down

0 comments on commit 344b23f

Please sign in to comment.