-
Notifications
You must be signed in to change notification settings - Fork 22
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
experimental solve_mp doesn't seem to work anymore #51
Comments
Maybe Huite can help. |
Suggested solution (from Joost Delsman and in Dutch): Het lag aan het referencen van de module besselaesnumba vanuit elk element. Dan kan python m blijkbaar niet meer picklen er daarmee werkt de multiprocessing niet meer. Oplossing is de switch fy2p / numba niet meer intern in elk element te hebben, maar in de globale namespace. Heb de linesink.py aangepast, daarmee werkt het voor mij (gebruik geen andere elementen, maar daar geldt vast hetzelfde voor). |
Solved it by moving the switch between numba f2py to the global namespace, instead of inline in the element classes: from .besselaesnumba import besselaesnumba as bessel and then in the class remove the self.bessel, and instead refer to the global bessel
--> qxqy[:, :] = bessel.disbeslsv(float(x), float(y), self.z1, |
experimental solve_mp doesn't seem to work anymore. I wonder if it ever worked since the move to numba.
The text was updated successfully, but these errors were encountered: