spectralDNS / shenfun

High performance computational platform in Python for the spectral Galerkin method
http://shenfun.readthedocs.org
BSD 2-Clause "Simplified" License
204 stars 42 forks source link

SymPy Deprecation #72

Open alberto-battistel opened 3 years ago

alberto-battistel commented 3 years ago

Hi, very nice platform for spectral methods. I have just installed following the instructions for conda and I found that Sympy gives a warning from

shenfun/lib/python3.9/site-packages/sympy/utilities/lambdify.py:807: SymPyDeprecationWarning:

The list of arguments is a set. This leads to unpredictable results has been deprecated since SymPy 1.6.3. Use : Convert set into list or tuple instead. See https://github.com/sympy/sympy/issues/20013 for more info.

for some demos (dirichlet_poisson2D, dirichlet_poisson3D, dirichlet_Helmholtz2D), but I did all the demos.

Best, Alberto

mikaem commented 3 years ago

Thanks Alberto,

I have Sympy 1.6.2 on my machine, so I've never seen the warning before. But I know what it's about, and it's easy to fix.

Mikael

alberto-battistel commented 3 years ago

I actually also ran the pytest and there are a lot of warning about the use of np.float or np.complex, but I did not look in details into it.

I guess they are all connected with the latest versions of numpy, sympy, ...

I am going to run the test properly and I will let you know.

Alberto

On 23.02.21 18:18, Mikael Mortensen wrote:

Thanks Alberto,

I have Sympy 1.6.2 on my machine, so I've never seen the warning before. But I know what it's about, and it's easy to fix.

Mikael

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/spectralDNS/shenfun/issues/72#issuecomment-784363265, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACNDTJ42QL6VUND6XDCSYJTTAPPMXANCNFSM4YCXVKUA.