Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
Previous commit changed default value of ignore_starkshift argument of transitionwavelength from true to false. This caused one test in test_hamiltonians.jl to fail. The problem was with the test and it has been updated.
  • Loading branch information
neil-glikin committed Apr 19, 2022
1 parent 507088f commit 46551dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_hamiltonians.jl
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,9 @@ end
@test Δ[1, 1][1] 2π && Δ[1, 2][1] 2π && Δ[2, 1][1] 0 && Δ[2, 2][1] 0

# lastly let's test when resonant
zero_stark_shift!(C)
T.B = 1e-4
L1.λ = transitionwavelength(C, (("S1/2", -1/2), ("D5/2", -1/2)), T)
zero_stark_shift!(C)
Δ = IonSim._Δmatrix(T, 1)
@test Δ[1, 1][1] 0

Expand Down

0 comments on commit 46551dc

Please sign in to comment.