We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c2e2d7 commit ac676efCopy full SHA for ac676ef
1 file changed
python/sdist/amici/sbml_import.py
@@ -1471,19 +1471,16 @@ def _process_reactions(self):
1471
self.stoichiometric_matrix[
1472
species["index"], reaction_index
1473
] += sign * stoichiometry * species["conversion_factor"]
1474
+
1475
if reaction.isSetId():
1476
sym_math = self._local_symbols[reaction.getId()]
1477
else:
1478
sym_math = self._sympify(
1479
reaction.getKineticLaw() or sp.Float(0)
1480
)
1481
- self.flux_vector[reaction_index] = sym_math.subs(
1482
- {
1483
- BooleanTrue(): sp.Float(1.0),
1484
- BooleanFalse(): sp.Float(0.0),
1485
- }
1486
- )
+ self.flux_vector[reaction_index] = sym_math
1487
if any(
1488
str(symbol) in reaction_ids
1489
for symbol in self.flux_vector[reaction_index].free_symbols
0 commit comments