eab2da81c65974e08b8245bbf8a052093f972df3,Pysb.py,Rule,__init__,#Rule#Any#Any#Any#Any#,287
Before Change
SelfExporter.__init__(self, name)
if isinstance(reactants, MonomerPattern):
reactants = [reactants]
if isinstance(products, MonomerPattern):
products = [products]
if not all([isinstance(r, MonomerPattern) for r in reactants]):
raise Exception("Reactants must all be MonomerPatterns")
if not all([isinstance(p, MonomerPattern) for p in products]):
raise Exception("Products must all be MonomerPatterns")
if not isinstance(rate, Parameter):
raise Exception("Rate must be a Parameter")
After Change
if not isinstance(reaction_pattern_set, tuple) and len(reaction_pattern_set) != 3:
raise Exception("reaction_pattern_set must be a tuple of (ReactionPattern, ReactionPattern, Boolean)")
try:
reactant_pattern = as_reaction_pattern(reaction_pattern_set[0])
except InvalidReactionPatternException as e:
raise type(e)("Reactant does not look like a reaction pattern")
try:
product_pattern = as_reaction_pattern(reaction_pattern_set[1])
except InvalidReactionPatternException as e:
raise type(e)("Product does not look like a reaction pattern")
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 11
Instances
Project Name: pysb/pysb
Commit Name: eab2da81c65974e08b8245bbf8a052093f972df3
Time: 2009-08-09
Author: jmuhlich@bitflood.org
File Name: Pysb.py
Class Name: Rule
Method Name: __init__
Project Name: pysb/pysb
Commit Name: eab2da81c65974e08b8245bbf8a052093f972df3
Time: 2009-08-09
Author: jmuhlich@bitflood.org
File Name: Pysb.py
Class Name: Model
Method Name: observe
Project Name: pandas-dev/pandas
Commit Name: 5bf5ae80f4292d16c0ad90318ee5d41a1870fa62
Time: 2021-02-17
Author: 45562402+rhshadrach@users.noreply.github.com
File Name: pandas/core/apply.py
Class Name: Apply
Method Name: agg_list_like