Skip to content
Snippets Groups Projects
Commit b1879be5 authored by Rafal Skolasinski's avatar Rafal Skolasinski Committed by Joseph Weston
Browse files

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

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.
parent 599bd84f
No related branches found
No related tags found
No related merge requests found
Loading
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