From f135c204ef6f6875c061234d1d04bfa1583714af Mon Sep 17 00:00:00 2001
From: Michiel Cottaar <MichielCottaar@protonmail.com>
Date: Fri, 31 May 2024 12:50:56 +0100
Subject: [PATCH] Reduce precision for custom sequence tests

---
 test/test_IO.jl | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/test/test_IO.jl b/test/test_IO.jl
index f9ff59c..4fa3199 100644
--- a/test/test_IO.jl
+++ b/test/test_IO.jl
@@ -118,12 +118,12 @@
                 write_sequence(io, seq_orig; format=format)
                 seek(io, 0)
                 seq_json = read_sequence(io; format=format)
-                @test variables.duration(seq_orig) ≈ variables.duration(seq_json)
+                @test isapprox(variables.duration(seq_orig), variables.duration(seq_json), atol=1e-5)
                 @test length(seq_orig) == length(seq_json)
-                @test all(variables.duration.(seq_orig) .≈ variables.duration.(seq_json))
+                @test all(isapprox.(variables.duration.(seq_orig), variables.duration.(seq_json), atol=1e-5))
                 @test length(iter_instant_gradients(seq_json)) == length(iter_instant_gradients(seq_json))
                 @test length(iter_instant_pulses(seq_json)) == length(iter_instant_pulses(seq_json))
-                @test all(variables.readout_times(seq_json) .≈ variables.readout_times(seq_orig))
+                @test all(isapprox.(variables.readout_times(seq_orig), variables.readout_times(seq_json), atol=1e-5))
             end
         end
     end
-- 
GitLab