Skip to content
Snippets Groups Projects
Commit 28558ed2 authored by Joseph Weston's avatar Joseph Weston
Browse files

fix check for sympy classes in sympify

As of version 1.1.1 Sympy does not include MutableDenseMatrix
in 'all_classes', so expressions containing such terms did not trigger
the warning in kwant.continuum.sympify when 'locals' are provided.

Closes #180.
parent 6647bc7a
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -25,6 +25,9 @@ import warnings
from .._common import reraise_warnings
# TODO: remove when sympy correctly includes MutableDenseMatrix (lol).
sympy_classes = set(sympy_classes) | {sympy.MutableDenseMatrix}
momentum_operators = sympy.symbols('k_x k_y k_z', commutative=False)
position_operators = sympy.symbols('x y z', commutative=False)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment