-
Notifications
You must be signed in to change notification settings - Fork 217
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
Help! Cobra toolbox with CobraPy doesn't work #517
Comments
Noone has worked on the Matlab interface in a while so thank you for reporting the issue. That also means that we don't have a lot of expertise right now. We'll look into it, of course. |
I finally got connected to Matlab with %load_ext pymatbridge. Any idea?
Thank in advance. |
Hi, could you check whether you have scipy installed, since that is required for that functionality. The error suggests that you are missing scipy. We should probably make that clear when calling the function... |
@beacamara please post the output of |
System InformationOS Linux Package Versionscobra 0.16.0 |
Looks like the error was introduced with the new |
I have an old version of Matlab (R2010b). I there a way a can help to fix it? If you lead me to do it I can try. |
Cool, l'll send a PR with a potential fix and ping you with instructions on how to test it. |
@cdiener is this issue fixed? I just ran into the same issue |
Not yet because I do not have access to Matlab and nobody was willing to help out by testing the proposed fix and some example code in #909. I you want to jump in and test the PR and whether pymatbridge still works we would definitely appreciate it. |
@cdiener I'd be happy to! Sorry for the delayed response. I can get to this next week sometime and I'll let you know what I figure out! |
That would be great. For now it would be sufficient to run the code from my last comment in #909 and confirm that pymatbridge is still working. That does not require checking out the PR. |
This should be closed since pymatbridge has been removed due to lack of maintainers. see #1197 which was merged as of release 0.25 |
Hello,
Using cobra toolbox with CobraPy does not work for me.
I have a tool in matlab, and I need to execute it with Jupyter's Python.
I can connect with Matlab executing:
But I can't convert a model sbml to matlab struct with:
model_to_pymatbridge(model, variable_name="model", matlab=pymatbridge.Matlab)
AttributeError: 'numpy.ndarray' object has no attribute 'todok'
I tried with magics, but I can't connect to Matlab
%load_ext pymatbridge
............................................................MATLAB session timed out after 60 seconds
How does it work? How I can execute a cobra toolbox in Jupyter with Python?
I will be grateful for any help you can provide.
Thank you in advance.
The text was updated successfully, but these errors were encountered: