usnistgov / fipy

FiPy is a Finite Volume PDE solver written in Python
http://pages.nist.gov/fipy/en/latest
Other
510 stars 149 forks source link

import warnings: syntax & deprecation #891

Open tkphd opened 1 year ago

tkphd commented 1 year ago

Running FiPy on Python 3.9 in a Jupyter notebook, some routine imports throw warnings that would be nice to clear up.

SyntaxWarning: "is not"/"is" with a literal. Did you mean "!="/"=="?

Looks like is is supported for None but not most useful things, which is a bummer for readability.

DeprecationWarning: invalid escape sequence {\c,\m,\p}

Not very important, but these are thrown from docstrings with math notation, apparently parsing the """-delimited blocks as code instead of comments. Rude.

guyer commented 1 year ago

Thanks for the report