Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pablosanjose committed Feb 26, 2025
1 parent 37e24c4 commit d190666
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_greenfunction.jl
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ end
g = LP.square() |> hopping(1) |> supercell(3,1) |> greenfunction(GS.Schur(; axis = 2, atol = 1e-2, callback))
ρ = densitymatrix(g[])
@test iszero(ref[])
@test all(x->abs(real(x)) < 1e-8, diag(g(0)[]))
@test all(x->abs(real(x)) < 1e-6, diag(g(0)[]))
@test !iszero(ref[])
ref = Ref(0.0)
@test diag(ρ()) [0.5,0.5,0.5]
Expand Down

0 comments on commit d190666

Please sign in to comment.