Skip to content

fix problem in discretizer that occur when onsite is set to "int(1)"

Thanks to @torosdahl for reporting.

Running "kwant.continuum.discretize('k_x**2 + 1')" was resulting
in an "AssertionError". This happend because "1 * expr = expr"
in SymPy and therefore a wrong argument has been passed to
"_read_offset" function.
Edited by Rafal Skolasinski

Merge request reports