Skip to content

raise RuntimeError when using unvalid input in kwant.continuum.sympify

Bas Nijholt requested to merge basnijholt/kwant:raise_when_not_working into master

I've just spent a whole day debugging a problem.

I used locals on a sympy input. Normally this should give a warning however when the function that calls something_hamiltonian(sympy_ham, locals=locals) is nested deeply enough, the warning doesn't show up at all. Instead, I think we should raise an error to help the user.

Edited by Bas Nijholt

Merge request reports