From b65570f826db01bf312ef21ece9ddf75cef4a028 Mon Sep 17 00:00:00 2001 From: Pete Bachant Date: Sat, 1 Jun 2024 15:27:24 -0400 Subject: [PATCH] Update tests --- turbinedaq/tests/test_daqtasks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/turbinedaq/tests/test_daqtasks.py b/turbinedaq/tests/test_daqtasks.py index 51df600..effc748 100644 --- a/turbinedaq/tests/test_daqtasks.py +++ b/turbinedaq/tests/test_daqtasks.py @@ -21,7 +21,7 @@ def test_aftacsdaqthread(acs_hcomm): thread.start() time.sleep(2) thread.stop() - assert np.all(np.diff(thread.data["time"] == 0.001)) + assert np.all(np.round(np.diff(thread.data["time"]), decimals=6) == 0.001) def test_acsdaqthread(acs_hcomm): @@ -29,4 +29,4 @@ def test_acsdaqthread(acs_hcomm): thread.start() time.sleep(2) thread.stop() - assert np.all(np.diff(thread.data["time"] == 0.001)) + assert np.all(np.round(np.diff(thread.data["time"]), decimals=6) == 0.001)