TestSensingStackMeasurements.test_stack_measurements fails with precision mismatch
When running the test suite with pytest
on Linux I see the following AssertionError
:
_____________ TestSensingStackMeasurements.test_stack_measurements _____________
self = <test.test_measurement.TestSensingStackMeasurements testMethod=test_stack_measurements>
def test_stack_measurements(self):
test = self.meas.stack_measurements([self.meas2], 20, 5000,
[20], [5000])
for n in range(len(test[0][0])):
self.assertAlmostEqual(test[0][0][n] / self.known_freq[n], 1.0)
> self.assertAlmostEqual(
np.abs(test[0][1][n])/np.abs(self.known_opt_resp[n]), 1.0)
E AssertionError: 1.000000059604456 != 1.0 within 7 places (5.960445603747644e-08 difference)
test/test_measurement.py:835: AssertionError