-
Notifications
You must be signed in to change notification settings - Fork 7
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
Native odesys ignores provided parameters if it is based on SymbolicSys created by chempy #105
Comments
Thank you for reporting this. Indeed something's not quite right here. I'll try to find some time this weekend to take a closer look. |
OK I've found some time and looked closer at this. The API is not fully finished here (hence the conventional leading underscore in
outputResults from symbolic odesys I tried using uppercase where I made the changes to highlight them. If you are interested in polishing the API of chempy here (and/or pyodesys) I'd be more than happy to assist/review any proposal. Otherwise it might be a while since I don't currently have too much time so I've prioritized bug-fixes to adding new features. |
Your fix solves my problem. Thank you for the quick reply, I really appreciate it. Btw, thanks for both chempy and pyodesys, they are very convenient to build kinetic models! Personally, I think naming the parameters is very advantageous for readability and avoidance of disordering the parameters. To be honest, I wouldn't know where to start in order to make this work with |
I'm happy to hear that you have found them useful! They aren't perfect but I've done my best to build a large test suite and (hopefully) decent API/documentation. Modelling kinetics and exploring different mechanisms is what I mainly use ChemPy for myself -- and it turns out that it has catched quite a few errors in some published models as well (unbalanced reactions, incorrect units etc.) which I miss even though I'm actively looking for them while transcribing from some article.. Yes, don't worry about adding warnings, but if you think of one which would be helpful, just let me know and we can try to figure out how to incorporate it. (One way that might work would be to store e.g. |
I tried your example on native odesys. Providing different parameters leads to different concentrations as it should.
Now I noticed that if I construct the
odesys
using chempy, the results stay the same even if I change the parameters:The output:
There are minor numerical differences between the results from the symbolic odesys and the native one. In the latter, the ordering of species is slightly different and there are some negative concentrations, though. Can their absolute values be safely used or this there something wrong with them?
The provided parameters change nothing, though. Is there a way to make this work? Thanks in advance!
chempy 0.6.15
pyodesys 0.11.17
python 2.7.15
same behaviour with
chempy 0.7.6
pyodesys 0.12.4
The text was updated successfully, but these errors were encountered: