Skip to content

Commit

Permalink
Fix for all homo-dimer reactions
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Drawert committed Aug 29, 2014
1 parent d4d89df commit 2dddcad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyurdme/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ def create_mass_action(self):
raise ReactionError("Reaction: " +self.name + "A mass-action reaction cannot involve more than two species.")

# Case EmptySet -> Y
propensity_function = 'return ' + self.marate.name;
propensity_function = self.marate.name;

# There are only three ways to get 'total_stoch==2':
for r in self.reactants:
Expand All @@ -345,7 +345,7 @@ def create_mass_action(self):
propensity_function += "*vol"


self.propensity_function = propensity_function + ';'
self.propensity_function = "return " + propensity_function + ';'

def set_type(self,type):
if type not in {'mass-action','customized'}:
Expand Down

0 comments on commit 2dddcad

Please sign in to comment.