UC-Davis-molecular-computing / ppsim

Python package for simulating population protocols
MIT License
10 stars 5 forks source link

SimulatorMultiBatch.get_enabled_reactions should check count of reactants with stoichiometric coefficient > 1 #13

Closed dave-doty closed 3 years ago

dave-doty commented 3 years ago

SimulatorMultiBatch.get_enabled_reactions incorrectly reports a reaction such as L+L → L+F as enabled even if there is only 1 L. It is just checking for the existence of each reactant, but instead it should compare their counts to the stoichiometric coefficient (i.e., multiplicity of each type of reactant).