Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions python/sdist/amici/sbml_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -3066,7 +3066,7 @@ def is_assignment_rule_target(self, element: libsbml.SBase) -> bool:
boolean indicating truth of function name
"""
a = self.sbml.getAssignmentRuleByVariable(element.getId())
return a is not None and self._sympify(a) is not None
return a is not None and a.getMath() is not None

def is_rate_rule_target(self, element: libsbml.SBase) -> bool:
"""
Expand All @@ -3080,7 +3080,7 @@ def is_rate_rule_target(self, element: libsbml.SBase) -> bool:
boolean indicating truth of function name
"""
a = self.sbml.getRateRuleByVariable(element.getId())
return a is not None and self._sympify(a) is not None
return a is not None and a.getMath() is not None

def _transform_dxdt_to_concentration(
self, species_id: sp.Symbol, dxdt: sp.Expr
Expand Down
3 changes: 2 additions & 1 deletion python/sdist/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ test = [
"h5py",
"pytest",
"pytest-cov",
"pytest-rerunfailures",
# v16.0: https://github.com/pytest-dev/pytest-rerunfailures/issues/302
"pytest-rerunfailures!=16.0",
"coverage",
"shyaml",
"antimony>=2.13",
Expand Down
Loading