-
Notifications
You must be signed in to change notification settings - Fork 33
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
SBML Observables set to 0 when non-default solver is used #720
Comments
Hello there! The default solver is selected based on what elements are present in the model. In the case of this particular model, the Assignment rules are, unfortunately, only supported by the (I will admit, though, that it's not particularly clear from the documentation that this is the case, which is worth making a note of and addressing) Hope this helps! |
Just double checking here, you mean that import sys, os, numpy, libsbml, gillespy2
from gillespy2 import NumPySSASolver
result = gillespy2.core.import_SBML('multistate.txt')[0].run(solver=NumPySSASolver); is bad code, because the model uses "assignment rules", which is unsupported by the solver. When I run it the results look fine, it is just the observables that are weird. Do you mean that the combination of assignment rules and solver:
|
Yes, that's correct. I opened an issue, #721, to make this behavior clearer, but essentially the behavior of the Observables is being modeled using an SBML feature that only works when using the |
I have an SBML model which I want to simulate with the SSA using Gillespy2 (in attached .txt file, was .xml but changed it so that GitHub would accept). However, I noticed that the output plots were weird. It turns out that the observable fields of the result were all set to
0
at all time points. However, this only happened when a non-default solver was used:gives:
while
gives:
similar things happen when I try
solver=ODESolver
,solver=TauLeapingSolver
. However, specifyingsolver=TauHybridSolver
(the default, right?) does give non-zero outputs.multistate.txt
The text was updated successfully, but these errors were encountered: