Skip to content

Commit

Permalink
use add_reactions instead of add_reaction
Browse files Browse the repository at this point in the history
  • Loading branch information
axelvonkamp committed May 11, 2023
1 parent 4310d44 commit 2f0f898
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion optlang_enumerator/mcs_computation.py
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ def equations_to_matrix(model, equations):
dual.add_metabolites([cobra.Metabolite(r) for r in reaction_ids])
for i in range(len(equations)):
r = cobra.Reaction("R"+str(i))
dual.add_reaction(r)
dual.add_reactions([r])
r.build_reaction_from_string('=> '+equations[i])
dual = cobra.util.array.create_stoichiometric_matrix(dual, array_type='DataFrame')
if numpy.all(dual.index.values == reaction_ids):
Expand Down

0 comments on commit 2f0f898

Please sign in to comment.