Skip to content

Commit

Permalink
Merge pull request #176 from jmuhlich/bng_rate_factor
Browse files Browse the repository at this point in the history
Treat BNG symmetry/stoichiometry factors as numbers
  • Loading branch information
alubbock committed Nov 4, 2015
2 parents 5f31be7 + 7016b9f commit 95e62c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pysb/bng.py
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ def _parse_reaction(model, line):
rule_name, is_reverse = zip(*[re.subn('^_reverse_|\(reverse\)$', '', r) for r in rule_list])
is_reverse = tuple(bool(i) for i in is_reverse)
r_names = ['__s%d' % r for r in reactants]
combined_rate = sympy.Mul(*[sympy.Symbol(t) for t in r_names + rate])
combined_rate = sympy.Mul(*[sympy.S(t) for t in r_names + rate])
reaction = {
'reactants': reactants,
'products': products,
Expand Down

0 comments on commit 95e62c9

Please sign in to comment.