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
Large model Solver/Simulator construction errors in Python 3 #298
Comments
The Your options are:
|
Thanks, that's really informative! I went ahead with the Theano solution and it works well in Python 3. Looks like I missed this option because it's not documented -- perhaps it would be worth mentioning in the ScipeOdeSimulator docstrings (even if it's not very well tested yet). |
Update to this ticket: preferred solution now would be to use |
When trying to simulate models above a certain size (this is vague, but see example below) in Python 3, I get the following error:
I tried this in Python 3.5 and 3.6, and tried with both git cloned and setup.py installed PySB, and pip installed PySB (1.5.0). I tried both pysb.integrate.Solver and pysb.simulator.ScipyOdeSimulator. All result in the same error. I also tried the same in Python 2 and it worked.
To not make things more complicated with a real model, I experimented a bit with auto-generated models. I generated a model in which monomers named A-Z pairwise phosphorylate each other. I found that the error went away when I only had monomers A-T, and first appeared when I had monomer U in the model - this is the model I'm attaching.
pysb_model.py.zip
The text was updated successfully, but these errors were encountered: