Initializing Scalar Field with User-Defined Function #428
-
Hello, I am using py-pde to solve a system of coupled PDE for complex (scalar) fields, where the evolution rate depends on solutions of the Helmholtz equation; which in spherical coordinates are spherical Bessel functions. As a minimal (not-)working example, trying to run
results in the error message
I have looked into the documentation, other GitHub discussion posts and attempted several variations of this, but I always get this error. I would greatly appreciate any help in understanding this error message, or an alternative way to implement this? Thank you so much in advance! Alexandre |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
This is unexpected. What version of |
Beta Was this translation helpful? Give feedback.
Thank you so much for the fast reply! I am running the latest version, 0.31.0. It seems that the issue is not with py-pde, however.
I can run the code by running it from the command line, but it yields the error message above when trying to run it from Spyder. I don't understand what could cause this to happen, and I don't think it's worth it to spend time trying to do so. I am just happy enough that there is a workaround; in case the issue is not just with my particular Python installation but with Spyder, I am sharing it here.
Again, thank you for the amazing package, it is incredibly intuitive to use!