Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mathematical functions in rate laws cannot be pre-defined #39

Open
kaizu opened this issue Feb 8, 2016 · 1 comment
Open

Mathematical functions in rate laws cannot be pre-defined #39

kaizu opened this issue Feb 8, 2016 · 1 comment
Labels
bug Something isn't working invalid This doesn't seem right

Comments

@kaizu
Copy link
Member

kaizu commented Feb 8, 2016

from numpy import exp
from ecell4 import *

with reaction_rules():
    A > B | exp(A) * A

m = get_model()
print([rr.as_string() for rr in m.reaction_rules()])

must show ['A+A.exp>B+A.exp|(A.exp*A)']. Without the first line, it will show ['A>B|(exp(A)*A)'].
This is not wrong, but confusing.

@kaizu
Copy link
Member Author

kaizu commented May 10, 2016

This seems because numpy.exp(X) tries to return X.exp() without checking the type of X.

@kaizu kaizu transferred this issue from ecell/ecell4_base Feb 15, 2019
@kaizu kaizu added the invalid This doesn't seem right label Feb 15, 2019
@kaizu kaizu added the bug Something isn't working label May 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

1 participant