Skip to content

Commit 3ff2c9d

Browse files
committed
fixup
1 parent c0c0cdf commit 3ff2c9d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

python/sdist/amici/sbml_import.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2305,6 +2305,10 @@ def _make_initial(
23052305
# recursive!
23062306
init = self._make_initial(get_species_initial(species))
23072307
sym_math = sym_math.subs(var, init)
2308+
elif var in self.symbols[SymbolId.SPECIES]:
2309+
sym_math = sym_math.subs(
2310+
var, self.symbols[SymbolId.SPECIES][var]["init"]
2311+
)
23082312
elif (
23092313
element := self.sbml.getElementBySId(element_id)
23102314
) and self.is_rate_rule_target(element):

0 commit comments

Comments
 (0)