improve error messages when creating invalid HoppingKinds
Closes #147 (closed).
Also uncovered an invalid HoppingKind creation in the tests!
Merge request reports
Activity
assigned to @cwg
@anton-akhmerov you suggest that we use
raise X from Y
?For example right now the same error message would be shown if the arguments aren't site families at all
@anton-akhmerov not true; there is an
ensure_isinstance
check in the preceding lines.Edited by Joseph Westonadded 7 commits
-
9fda0266...4faf0584 - 4 commits from branch
kwant:stable
- 9b205b5a - add test that defines failure modes of HoppingKinds
- c53f7a6d - add compatibility check between site families and delta in HoppingKinds
- b9403d1e - fix broken HoppingKind test
Toggle commit list-
9fda0266...4faf0584 - 4 commits from branch
mentioned in commit 732a1695
Please register or sign in to reply