From 267e1fe5b72a844de1b2d1ff006b7724c265c08d Mon Sep 17 00:00:00 2001 From: Brian Drawert Date: Tue, 12 Aug 2014 17:03:32 -0700 Subject: [PATCH] cleaned up propensity function generation --- pyurdme/pyurdme.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/pyurdme/pyurdme.py b/pyurdme/pyurdme.py index 18c9ad4..7f1c232 100644 --- a/pyurdme/pyurdme.py +++ b/pyurdme/pyurdme.py @@ -2019,7 +2019,6 @@ def create_propensity_file(self, file_name=None): func += funheader.replace("__NAME__", rname) + "\n{\n" if self.model.listOfReactions[R].restrict_to == None or (isinstance(self.model.listOfReactions[R].restrict_to, list) and len(self.model.listOfReactions[R].restrict_to) == 0): func += self.model.listOfReactions[R].propensity_function - func += ';' else: func += "if(" if isinstance(self.model.listOfReactions[R].restrict_to, list) and len(self.model.listOfReactions[R].restrict_to) > 0: @@ -2032,7 +2031,6 @@ def create_propensity_file(self, file_name=None): raise URDMEError("When restricting reaction to subdomains, you must specify either a list or an int") func += "){\n" func += self.model.listOfReactions[R].propensity_function - func += ';' func += "\n}else{" func += "\n\treturn 0.0;}"