EdgePi-Cloud / edgepi-python-sdk

Python SDK to control EdgePi, an industrial PC/PLC/IoT device powered by Raspberry Pi CM4
MIT License
5 stars 3 forks source link

hardware test diffs are failing #412

Closed farzadpanahi closed 4 months ago

farzadpanahi commented 4 months ago
a = 2.0, b = 4.085951747899065, error = 0.1
    def _assert_approx(a: float, b: float, error: float):
        """assert `b` is within +/- `error` of `a`"""
        # pylint: disable=invalid-name
>       assert (a - error) <= b <= (a + error)
E       assert 4.085951747899065 <= (2.0 + 0.1)
tests/hardware_tests/test_voltage_rw.py:62: AssertionError
FAILED tests/hardware_tests/test_voltage_rw.py::test_differential_rw_adc_1[DiffMode.DIFF_2-1.0]
FAILED tests/hardware_tests/test_voltage_rw.py::test_differential_rw_adc_1[DiffMode.DIFF_2-2.0]
FAILED tests/hardware_tests/test_voltage_rw.py::test_differential_rw_adc_1[DiffMode.DIFF_2-3.0]
FAILED tests/hardware_tests/test_voltage_rw.py::test_differential_rw_adc_1[DiffMode.DIFF_2-4.0]
FAILED tests/hardware_tests/test_voltage_rw.py::test_differential_rw_adc_2[DiffMode.DIFF_2-1.0]
FAILED tests/hardware_tests/test_voltage_rw.py::test_differential_rw_adc_2[DiffMode.DIFF_2-2.0]
FAILED tests/hardware_tests/test_voltage_rw.py::test_differential_rw_adc_2[DiffMode.DIFF_2-3.0]
FAILED tests/hardware_tests/test_voltage_rw.py::test_differential_rw_adc_2[DiffMode.DIFF_2-4.0]