From 26b6057941d92ac65b59f16cf09b0d98cf7da748 Mon Sep 17 00:00:00 2001 From: Artur Glavic Date: Tue, 24 Feb 2026 08:27:57 +0100 Subject: [PATCH] Try fixing test failure due to floating point precision issue --- tests/test_event_handling.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_event_handling.py b/tests/test_event_handling.py index d859594..b99596a 100644 --- a/tests/test_event_handling.py +++ b/tests/test_event_handling.py @@ -275,7 +275,7 @@ class TestSimpleActions(TestCase): self.d.data.pulses.monitor = 13 amT.perform_action(self.d) - np.testing.assert_array_equal(self.d.data.pulses.monitor, self.d.timing.tau*2) + np.testing.assert_array_equal(self.d.data.pulses.monitor, np.float32(2*self.d.timing.tau)) self.d.data.pulses.monitor = 13 amPC.perform_action(self.d)