Try fixing test failure due to floating point precision issue
Some checks failed
Unit Testing / test (3.10) (push) Has been cancelled
Unit Testing / test (3.11) (push) Has been cancelled
Unit Testing / test (3.12) (push) Has been cancelled
Unit Testing / test (3.8) (push) Has been cancelled
Unit Testing / test (3.9) (push) Has been cancelled
Some checks failed
Unit Testing / test (3.10) (push) Has been cancelled
Unit Testing / test (3.11) (push) Has been cancelled
Unit Testing / test (3.12) (push) Has been cancelled
Unit Testing / test (3.8) (push) Has been cancelled
Unit Testing / test (3.9) (push) Has been cancelled
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user