Skip to content
Snippets Groups Projects
Commit 1dcf9ec9 authored by Christoph Groth's avatar Christoph Groth
Browse files

make comprehensive test more comprehensive

parent 6c17ce9a
Branches
Tags
No related merge requests found
...@@ -51,5 +51,7 @@ def test_qhe(W=16, L=8): ...@@ -51,5 +51,7 @@ def test_qhe(W=16, L=8):
((5.2, 5.5), 3, 1e-1)]: ((5.2, 5.5), 3, 1e-1)]:
for r_phi in r_phis: for r_phi in r_phis:
args = (1.0 / r_phi, "") args = (1.0 / r_phi, "")
T_actual = kwant.smatrix(sys, 1.0, args).transmission(1, 0) pc = sys.precalculate(1.0, args)
assert abs(T_nominal - T_actual) < max_err for result in [kwant.smatrix(pc, 1, args),
kwant.solvers.default.greens_function(pc, 1, args)]:
assert abs(T_nominal - result.transmission(1, 0)) < max_err
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment