Skip to content

raise UserCodeError with message when Hamiltonian value functions fail

Joseph Weston requested to merge jbweston/kwant:feature/user-error into master

fixes #36 (closed)

This uses the Python3 syntax raise x from y, so cannot be backported to Python2 as-is.

Merge request reports