Skip to content

Commit

Permalink
Hide sbmlmath import to be as needed
Browse files Browse the repository at this point in the history
  • Loading branch information
bgyori committed Oct 29, 2024
1 parent e0daefa commit 6e1cd7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mira/sources/sbml/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import copy
import math
import libsbml
from sbmlmath import SBMLMathMLParser
from typing import Dict, Iterable, List, Mapping, Tuple

from mira.sources.sbml.utils import *
Expand Down Expand Up @@ -808,6 +807,7 @@ def _extract_all_copasi_attrib(
def get_distribution(obj):
distr_tag = obj.getPlugin("distrib")
if distr_tag:
from sbmlmath import SBMLMathMLParser
for uncertainty in distr_tag.getListOfUncertainties():
for param_uncertainty in uncertainty.getListOfUncertParameters():
mathml_str = libsbml.writeMathMLToString(param_uncertainty.getMath())
Expand Down

0 comments on commit 6e1cd7a

Please sign in to comment.