SymPy=1.2 compatibility
So far following works
expr = kwant.continuum.sympify("k_x**2 * exp(k_x)")
tb = kwant.continuum.discretize(expr)
whereas following fails
expr = sympy.sympify("k_x**2 * exp(k_x)")
tb = kwant.continuum.discretize(expr)
as exp
is now sympy.exp
and is not properly processed.
Discretizer should properly detect and process all kind of sympy functions.
Bottom line: I don't think it is an actual bug as it works if one pass
directly string to kwant.continuum.discretize
all first to kwant.continuum.sympify
.
It is still a case that I believe should be handled properly.
Edited by Rafal Skolasinski