-
Notifications
You must be signed in to change notification settings - Fork 52
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
add scipy #123
add scipy #123
Conversation
todos:
|
After disabling pthreads in pypocketfft, things are loading (almost) correctly in the browser. Another needed manual fix is that We still have some remaining issues:
The following does not work currently (FORTRAN error calling function?). import numpy as np
from scipy.optimize import minimize, rosen, rosen_der
def f(x):
return x**2 + 10*np.sin(x)
print(minimize(f, x0=0)) |
Pythran should be fixed after removing strip all here: #129 |
I checked the pyodide binaries and there is a difference with ours for the propack stuff. Ours:
Pyodide:
So somehow, only one of the two files seems to refer to bbcom. We should check what's different! |
I removed the other unecessary patch that tried to import pyodide js. I tried around a bit, and the same
And after the first apply() issues, it says something about memory acces out of bounds. |
I manually tested the tests:
Gives the same
as the optimize functions. Maybe something interacting with Fortran that we need to solve in general. |
Uhhm ist the lib in the packed js? If not, we might be on a too old empack Version. |
@DerThorsten I think that is not the problem. I think the problem is that |
Btw. we should improve emscripten to throw better error messages for this case |
I think this is the minimal reproducer:
|
things are working fine if I manually "preload" the symbols from
would love to understand how to do that automatically / properly. |
I have high hopes that the tests are passing now! :) |
locally, when running the tests in the |
It's far from working, though!