simpeg / discretize

Discretization tools for finite volume and inverse problems.

Home Page:http://discretize.simpeg.xyz/

Repository from Github https://github.comsimpeg/discretizeRepository from Github https://github.comsimpeg/discretize

Syntax warnings in meshutils

lheagy opened this issue · comments

On the latest version of master, I get a number of Syntax warnings on import of discretize (running Python 3.8)

/.../discretize/discretize/utils/meshutils.py:92: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if len(shape) is 1:
/.../discretize/discretize/utils/meshutils.py:94: SyntaxWarning: "is" with a literal. Did you mean "=="?
  elif len(shape) is 2:
/.../discretize/discretize/utils/meshutils.py:96: SyntaxWarning: "is" with a literal. Did you mean "=="?
  elif len(shape) is 3:
/.../discretize/discretize/TreeMesh.py:631: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if v_type is not 'CC':

yup these should all get replaced!