File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -1471,19 +1471,16 @@ def _process_reactions(self):
1471
1471
self .stoichiometric_matrix [
1472
1472
species ["index" ], reaction_index
1473
1473
] += sign * stoichiometry * species ["conversion_factor" ]
1474
+
1474
1475
if reaction .isSetId ():
1475
1476
sym_math = self ._local_symbols [reaction .getId ()]
1476
1477
else :
1477
1478
sym_math = self ._sympify (
1478
1479
reaction .getKineticLaw () or sp .Float (0 )
1479
1480
)
1480
1481
1481
- self .flux_vector [reaction_index ] = sym_math .subs (
1482
- {
1483
- BooleanTrue (): sp .Float (1.0 ),
1484
- BooleanFalse (): sp .Float (0.0 ),
1485
- }
1486
- )
1482
+ self .flux_vector [reaction_index ] = sym_math
1483
+
1487
1484
if any (
1488
1485
str (symbol ) in reaction_ids
1489
1486
for symbol in self .flux_vector [reaction_index ].free_symbols
You can’t perform that action at this time.
0 commit comments