Open tkphd opened 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.
is
None
variables/variable.py:649
variables/meshVariable.py:118
variables/meshVariable.py:523
meshes/abstractMesh.py:1148
meshes/uniformGrid2D.py:428
terms/abstractConvectionTerm.py:155
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.
"""
boundaryConditions/boundaryCondition.py:45
Thanks for the report
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 forNone
but not most useful things, which is a bummer for readability.variables/variable.py:649
variables/meshVariable.py:118
variables/meshVariable.py:523
meshes/abstractMesh.py:1148
meshes/uniformGrid2D.py:428
terms/abstractConvectionTerm.py:155
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.boundaryConditions/boundaryCondition.py:45