Skip to content

revert back to using a parameter eval module #427

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

Merged
merged 3 commits into from
Jun 4, 2020

Conversation

isaacsas
Copy link
Member

@isaacsas isaacsas commented Jun 4, 2020

I think there is room to do better still, for example, I think we can get another ~20% speed up by having the ReactionSystem calculate the combinatoric stoichiometry factor for the rescaled rate. I'll work on that tomorrow or Friday if I have some time. Still, this gives a noticeable improvement.

parammap = map((x,y)->Pair(x(),y),parameters(js),pars)
parammap = Dict(convert(Variable,param) => pars[i] for (i,param) in enumerate(parameters(js)))
pvars = parameters(js)
param_context = Module()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the downside is that I think these models won't precompile.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should definitely look for another solution long term, but this gives us a short-term fix at least...

@isaacsas
Copy link
Member Author

isaacsas commented Jun 4, 2020

Not sure why tests didn't run. I'll close and re-open. Assuming they pass this should be good to merge.

@isaacsas isaacsas closed this Jun 4, 2020
@isaacsas isaacsas reopened this Jun 4, 2020
@isaacsas
Copy link
Member Author

isaacsas commented Jun 4, 2020

Hmm, for some reason it seem the Travis tests aren't being queued...

@ChrisRackauckas ChrisRackauckas merged commit b813592 into SciML:master Jun 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants