Skip to content
Snippets Groups Projects
Unverified Commit dfc27997 authored by Michiel Cottaar's avatar Michiel Cottaar
Browse files

Be more forgiving in test

parent 32179cfe
No related branches found
No related tags found
1 merge request!6Robust optimisation
Pipeline #24997 canceled
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
@test variables.rise_time(seq[:gradient]) min_rise_time rtol=1e-4 @test variables.rise_time(seq[:gradient]) min_rise_time rtol=1e-4
@testset "Explicitly minimising TE gives same result" begin @testset "Explicitly minimising TE gives same result" begin
alt = DiffusionSpinEcho(bval=1., TE=:min) alt = DiffusionSpinEcho(bval=1., TE=:min)
@test all(variables.duration.(seq) . variables.duration.(alt)) @test all(isapprox.(variables.duration.(seq), variables.duration.(alt), atol=1e-4, rtol=1e-6))
end end
end end
@testset "Maximise b-value" begin @testset "Maximise b-value" begin
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment