You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looking at the latest version of the code, there is just one function loadCopasiAPI (see below) that loads the COPASI instance, immidiately loads the SBML model and simulates. This should be separated as follows:
just as with the antimony wrapper, save the COPASI instance variable globally, so you have access to it and only reload if that instance is Null | undefined.
you only want to load the SBML model if it has been changed internally since the last simulation run (or the antimony was changed), or it was never loaded. Otherwise everything will be reset all the time.
Alternatively you could of course just work with the state object. Only load the api, if the state instance is not set ...
Looking at the latest version of the code, there is just one function
loadCopasiAPI
(see below) that loads the COPASI instance, immidiately loads the SBML model and simulates. This should be separated as follows:Null | undefined
.Alternatively you could of course just work with the state object. Only load the api, if the state instance is not set ...
The text was updated successfully, but these errors were encountered: