b5a097dd33f7a908d66611463c618fb4b378d072,pysb/generator/kappa.py,KappaGenerator,generate_reaction_rules,#KappaGenerator#,63
Before Change
if isinstance(r.rate_forward,pysb.core.Expression) and self.dialect == "complx":
raise InvalidExpressionException
f_rate_code = ("\"" + r.rate_forward.name + "\"" if self.dialect == "kasim"
else float(r.rate_forward.value))
self.__content += ("%s %s %s %s @ %s") % \
(label, reactants_code, arrow, products_code, f_rate_code)
self.__content += "\n"
After Change
if isinstance(r.rate_forward,pysb.core.Expression) and \
self.dialect == "complx":
raise KappaException("Expressions are not supported by complx.")
// Get the rate code depending on the dialect
if self.dialect == "kasim":
f_rate_code = "\"" + r.rate_forward.name + "\""
else:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: pysb/pysb
Commit Name: b5a097dd33f7a908d66611463c618fb4b378d072
Time: 2016-03-08
Author: bachmanjohn@gmail.com
File Name: pysb/generator/kappa.py
Class Name: KappaGenerator
Method Name: generate_reaction_rules
Project Name: pysb/pysb
Commit Name: b5a097dd33f7a908d66611463c618fb4b378d072
Time: 2016-03-08
Author: bachmanjohn@gmail.com
File Name: pysb/generator/kappa.py
Class Name:
Method Name: format_site_condition
Project Name: pysb/pysb
Commit Name: b19d85dc16666a50c8119cdd53183acfd9eea87d
Time: 2019-02-05
Author: jmuhlich@bitflood.org
File Name: pysb/generator/kappa.py
Class Name: KappaGenerator
Method Name: generate_species