From ae231ecd5a3b2c433ff24e2aa32abb18eacc8cd7 Mon Sep 17 00:00:00 2001 From: Michiel Cottaar <MichielCottaar@protonmail.com> Date: Tue, 10 Sep 2024 10:42:51 +0100 Subject: [PATCH] Increase tolerance in test --- test/test_sequences.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_sequences.jl b/test/test_sequences.jl index fc04437..c9e924d 100644 --- a/test/test_sequences.jl +++ b/test/test_sequences.jl @@ -45,8 +45,8 @@ @test all(isapprox.(variables.duration.(seq), [0., 0., 40., 0., 0., 0., 40., 0., 0., 0.], atol=1e-4, rtol=1e-4)) @test length([iter_instant_pulses(seq)...]) == 2 @test length([iter_instant_gradients(seq)...]) == 0. - @test variables.TE(seq) ≈ 80. - @test variables.duration(seq) ≈ 80. + @test variables.TE(seq) ≈ 80. rtol=1e-6 + @test variables.duration(seq) ≈ 80. rtol=1e-6 @test 4.8 < variables.bval(seq) < 4.9 @test variables.rise_time(seq[:gradient]) ≈ min_rise_time rtol=1e-4 @test all(isapprox.(edge_times(seq, tol=1e-3), [0., min_rise_time, 40. - min_rise_time, 40, 40 + min_rise_time, 80 - min_rise_time, 80.], atol=1e-4)) -- GitLab