Skip to content

Create derivative build for libiio v1 #2218

Create derivative build for libiio v1

Create derivative build for libiio v1 #2218

GitHub Actions / Unit Test Results failed Dec 6, 2023 in 0s

216 fail, 1 002 skipped, 39 pass in 2m 4s

1 257 tests  ±0        39 ✔️ +26   2m 4s ⏱️ - 40m 27s
       1 suites ±0   1 002 💤  -   6 
       1 files   ±0      216  - 20 

Results for commit 1aca669. ± Comparison against earlier commit 876b94b.

Annotations

Check warning on line 0 in test.test_ad2s1210

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_ad2s1210_attr[excitation_frequency-2000-20000-250-1-10-adi.ad2s1210] (test.test_ad2s1210) failed

results.xml
Raw output
test_attribute_single_value = <function attribute_single_value at 0x7f3f2c2ca0d0>
iio_uri = 'ip:10.1.0.152', classname = 'adi.ad2s1210'
attr = 'excitation_frequency', start = 2000, stop = 20000, step = 250, tol = 1
repeats = 10

    @pytest.mark.iio_hardware(hardware)
    @pytest.mark.parametrize("classname", [classname])
    @pytest.mark.parametrize(
        "attr, start, stop, step, tol, repeats",
        [("excitation_frequency", 2000, 20000, 250, 1, 10),],
    )
    def test_ad2s1210_attr(
        test_attribute_single_value,
        iio_uri,
        classname,
        attr,
        start,
        stop,
        step,
        tol,
        repeats,
    ):
>       test_attribute_single_value(
            iio_uri, classname, attr, start, stop, step, tol, repeats
        )

test/test_ad2s1210.py:33: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test/attr_tests.py:69: in attribute_single_value
    assert dev_interface(uri, classname, val, attr, tol)
test/common.py:101: in dev_interface
    sdr = eval(classname + "(uri='" + uri + "')")
<string>:1: in <module>
    ???
adi/ad2s1210.py:35: in __init__
    rx.__init__(self)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.ad2s1210.ad2s1210 object at 0x7f3f21138610>, rx_buffer_size = 1024

    def __init__(self, rx_buffer_size=1024):
        if self._complex_data:
            N = 2
        else:
            N = 1
        rx_enabled_channels = list(range(len(self._rx_channel_names) // N))
        self._num_rx_channels = len(self._rx_channel_names)
        self.rx_enabled_channels = rx_enabled_channels
        self.rx_buffer_size = rx_buffer_size
>       if self.__is_libiio_v1():
E       TypeError: 'NoneType' object is not callable

adi/rx_tx.py:57: TypeError

Check warning on line 0 in test.test_ad2s1210

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_ad2s1210_attr_boolean[hysteresis_enable-True-adi.ad2s1210] (test.test_ad2s1210) failed

results.xml
Raw output
test_attribute_single_value_boolean = <function attribute_single_value_boolean at 0x7f3f2c2ca160>
iio_uri = 'ip:10.1.0.152', classname = 'adi.ad2s1210'
attr = 'hysteresis_enable', value = True

    @pytest.mark.iio_hardware(hardware)
    @pytest.mark.parametrize("classname", [classname])
    @pytest.mark.parametrize(
        "attr, value", [("hysteresis_enable", True), ("hysteresis_enable", False),],
    )
    def test_ad2s1210_attr_boolean(
        test_attribute_single_value_boolean, iio_uri, classname, attr, value
    ):
>       test_attribute_single_value_boolean(iio_uri, classname, attr, value)

test/test_ad2s1210.py:47: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test/attr_tests.py:85: in attribute_single_value_boolean
    bi = eval(classname + "(uri='" + uri + "')")
<string>:1: in <module>
    ???
adi/ad2s1210.py:35: in __init__
    rx.__init__(self)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.ad2s1210.ad2s1210 object at 0x7f3f2104ec70>, rx_buffer_size = 1024

    def __init__(self, rx_buffer_size=1024):
        if self._complex_data:
            N = 2
        else:
            N = 1
        rx_enabled_channels = list(range(len(self._rx_channel_names) // N))
        self._num_rx_channels = len(self._rx_channel_names)
        self.rx_enabled_channels = rx_enabled_channels
        self.rx_buffer_size = rx_buffer_size
>       if self.__is_libiio_v1():
E       TypeError: 'NoneType' object is not callable

adi/rx_tx.py:57: TypeError

Check warning on line 0 in test.test_ad2s1210

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_ad2s1210_attr_boolean[hysteresis_enable-False-adi.ad2s1210] (test.test_ad2s1210) failed

results.xml
Raw output
test_attribute_single_value_boolean = <function attribute_single_value_boolean at 0x7f3f2c2ca160>
iio_uri = 'ip:10.1.0.152', classname = 'adi.ad2s1210'
attr = 'hysteresis_enable', value = False

    @pytest.mark.iio_hardware(hardware)
    @pytest.mark.parametrize("classname", [classname])
    @pytest.mark.parametrize(
        "attr, value", [("hysteresis_enable", True), ("hysteresis_enable", False),],
    )
    def test_ad2s1210_attr_boolean(
        test_attribute_single_value_boolean, iio_uri, classname, attr, value
    ):
>       test_attribute_single_value_boolean(iio_uri, classname, attr, value)

test/test_ad2s1210.py:47: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test/attr_tests.py:85: in attribute_single_value_boolean
    bi = eval(classname + "(uri='" + uri + "')")
<string>:1: in <module>
    ???
adi/ad2s1210.py:35: in __init__
    rx.__init__(self)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.ad2s1210.ad2s1210 object at 0x7f3f2109b6d0>, rx_buffer_size = 1024

    def __init__(self, rx_buffer_size=1024):
        if self._complex_data:
            N = 2
        else:
            N = 1
        rx_enabled_channels = list(range(len(self._rx_channel_names) // N))
        self._num_rx_channels = len(self._rx_channel_names)
        self.rx_enabled_channels = rx_enabled_channels
        self.rx_buffer_size = rx_buffer_size
>       if self.__is_libiio_v1():
E       TypeError: 'NoneType' object is not callable

adi/rx_tx.py:57: TypeError

Check warning on line 0 in test.test_ad4630

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_adaq42xx_scale_attr[scale-scale_available-0-1-chan0-adi.adaq42xx] (test.test_ad4630) failed

results.xml
Raw output
test_attribute_multiple_values = <function attribute_multiple_values at 0x7f3f2c2ca3a0>
iio_uri = 'ip:10.1.0.152', classname = 'adi.adaq42xx', attr = 'scale'
avail_attr = 'scale_available', tol = 0, repeats = 1, sub_channel = 'chan0'

    @pytest.mark.iio_hardware(hardware)
    @pytest.mark.parametrize("classname", [(classname)])
    @pytest.mark.parametrize(
        "attr, avail_attr, tol, repeats, sub_channel",
        [("scale", "scale_available", 0, 1, "chan0",),],
    )
    def test_adaq42xx_scale_attr(
        test_attribute_multiple_values,
        iio_uri,
        classname,
        attr,
        avail_attr,
        tol,
        repeats,
        sub_channel,
    ):
        # Get the device
>       sdr = eval(classname + "(uri='" + iio_uri + "')")

test/test_ad4630.py:82: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
<string>:1: in <module>
    ???
adi/ad4630.py:178: in __init__
    super().__init__(uri, device_name)
adi/ad4630.py:63: in __init__
    rx.__init__(self)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.ad4630.adaq42xx object at 0x7f3f2119cac0>, rx_buffer_size = 1024

    def __init__(self, rx_buffer_size=1024):
        if self._complex_data:
            N = 2
        else:
            N = 1
        rx_enabled_channels = list(range(len(self._rx_channel_names) // N))
        self._num_rx_channels = len(self._rx_channel_names)
        self.rx_enabled_channels = rx_enabled_channels
        self.rx_buffer_size = rx_buffer_size
>       if self.__is_libiio_v1():
E       TypeError: 'NoneType' object is not callable

adi/rx_tx.py:57: TypeError

Check warning on line 0 in test.test_ad5754r

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_ad5754r_global_attr[int_ref_powerup-val0-adi.ad5754r] (test.test_ad5754r) failed

results.xml
Raw output
test_attribute_multiple_values = <function attribute_multiple_values at 0x7f3f2c2ca3a0>
iio_uri = 'ip:10.1.0.152', classname = 'adi.ad5754r', attr = 'int_ref_powerup'
val = ['powerdown', 'powerup']

    @pytest.mark.iio_hardware(hardware)
    @pytest.mark.parametrize("classname", [(classname)])
    @pytest.mark.parametrize(
        "attr, val",
        [
            ("int_ref_powerup", ["powerdown", "powerup"],),
            ("clear_setting", ["0v", "midscale_code"],),
            ("sdo_disable", ["enable", "disable"],),
        ],
    )
    def test_ad5754r_global_attr(
        test_attribute_multiple_values, iio_uri, classname, attr, val
    ):
>       test_attribute_multiple_values(iio_uri, classname, attr, val, 0)

test/test_ad5754r.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test/attr_tests.py:220: in attribute_multiple_values
    assert dev_interface(uri, classname, val, attr, tol, sleep=sleep)
test/common.py:101: in dev_interface
    sdr = eval(classname + "(uri='" + uri + "')")
<string>:1: in <module>
    ???
adi/ad5754r.py:56: in __init__
    tx.__init__(self)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.ad5754r.ad5754r object at 0x7f3f210584c0>, tx_cyclic_buffer = False

    def __init__(self, tx_cyclic_buffer=False):
        if self._complex_data:
            N = 2
        else:
            N = 1
        tx_enabled_channels = list(range(len(self._tx_channel_names) // N))
        self._num_tx_channels = len(self._tx_channel_names)
        self.tx_enabled_channels = tx_enabled_channels
        self.tx_cyclic_buffer = tx_cyclic_buffer
        dds.__init__(self)
>       if self.__is_libiio_v1():
E       TypeError: 'NoneType' object is not callable

adi/rx_tx.py:328: TypeError

Check warning on line 0 in test.test_ad5754r

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_ad5754r_global_attr[clear_setting-val1-adi.ad5754r] (test.test_ad5754r) failed

results.xml
Raw output
test_attribute_multiple_values = <function attribute_multiple_values at 0x7f3f2c2ca3a0>
iio_uri = 'ip:10.1.0.152', classname = 'adi.ad5754r', attr = 'clear_setting'
val = ['0v', 'midscale_code']

    @pytest.mark.iio_hardware(hardware)
    @pytest.mark.parametrize("classname", [(classname)])
    @pytest.mark.parametrize(
        "attr, val",
        [
            ("int_ref_powerup", ["powerdown", "powerup"],),
            ("clear_setting", ["0v", "midscale_code"],),
            ("sdo_disable", ["enable", "disable"],),
        ],
    )
    def test_ad5754r_global_attr(
        test_attribute_multiple_values, iio_uri, classname, attr, val
    ):
>       test_attribute_multiple_values(iio_uri, classname, attr, val, 0)

test/test_ad5754r.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test/attr_tests.py:220: in attribute_multiple_values
    assert dev_interface(uri, classname, val, attr, tol, sleep=sleep)
test/common.py:101: in dev_interface
    sdr = eval(classname + "(uri='" + uri + "')")
<string>:1: in <module>
    ???
adi/ad5754r.py:56: in __init__
    tx.__init__(self)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.ad5754r.ad5754r object at 0x7f3f20fe17c0>, tx_cyclic_buffer = False

    def __init__(self, tx_cyclic_buffer=False):
        if self._complex_data:
            N = 2
        else:
            N = 1
        tx_enabled_channels = list(range(len(self._tx_channel_names) // N))
        self._num_tx_channels = len(self._tx_channel_names)
        self.tx_enabled_channels = tx_enabled_channels
        self.tx_cyclic_buffer = tx_cyclic_buffer
        dds.__init__(self)
>       if self.__is_libiio_v1():
E       TypeError: 'NoneType' object is not callable

adi/rx_tx.py:328: TypeError

Check warning on line 0 in test.test_ad5754r

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_ad5754r_global_attr[sdo_disable-val2-adi.ad5754r] (test.test_ad5754r) failed

results.xml
Raw output
test_attribute_multiple_values = <function attribute_multiple_values at 0x7f3f2c2ca3a0>
iio_uri = 'ip:10.1.0.152', classname = 'adi.ad5754r', attr = 'sdo_disable'
val = ['enable', 'disable']

    @pytest.mark.iio_hardware(hardware)
    @pytest.mark.parametrize("classname", [(classname)])
    @pytest.mark.parametrize(
        "attr, val",
        [
            ("int_ref_powerup", ["powerdown", "powerup"],),
            ("clear_setting", ["0v", "midscale_code"],),
            ("sdo_disable", ["enable", "disable"],),
        ],
    )
    def test_ad5754r_global_attr(
        test_attribute_multiple_values, iio_uri, classname, attr, val
    ):
>       test_attribute_multiple_values(iio_uri, classname, attr, val, 0)

test/test_ad5754r.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test/attr_tests.py:220: in attribute_multiple_values
    assert dev_interface(uri, classname, val, attr, tol, sleep=sleep)
test/common.py:101: in dev_interface
    sdr = eval(classname + "(uri='" + uri + "')")
<string>:1: in <module>
    ???
adi/ad5754r.py:56: in __init__
    tx.__init__(self)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.ad5754r.ad5754r object at 0x7f3f20f6b340>, tx_cyclic_buffer = False

    def __init__(self, tx_cyclic_buffer=False):
        if self._complex_data:
            N = 2
        else:
            N = 1
        tx_enabled_channels = list(range(len(self._tx_channel_names) // N))
        self._num_tx_channels = len(self._tx_channel_names)
        self.tx_enabled_channels = tx_enabled_channels
        self.tx_cyclic_buffer = tx_cyclic_buffer
        dds.__init__(self)
>       if self.__is_libiio_v1():
E       TypeError: 'NoneType' object is not callable

adi/rx_tx.py:328: TypeError

Check warning on line 0 in test.test_ad5754r

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_ad5754r_channel_attr[powerup-val0-0-adi.ad5754r] (test.test_ad5754r) failed

results.xml
Raw output
iio_uri = 'ip:10.1.0.152', classname = 'adi.ad5754r', channel = 0
attr = 'powerup', val = ['powerdown', 'powerup']

    @pytest.mark.iio_hardware(hardware)
    @pytest.mark.parametrize("classname", [(classname)])
    @pytest.mark.parametrize("channel", [0, 1, 2, 3])
    @pytest.mark.parametrize(
        "attr, val",
        [
            ("powerup", ["powerdown", "powerup"],),
            (
                "range",
                [
                    "0v_to_5v",
                    "0v_to_10v",
                    "0v_to_10v8",
                    "neg5v_to_5v",
                    "neg10v_to_10v",
                    "neg10v8_to_10v8",
                ],
            ),
        ],
    )
    def test_ad5754r_channel_attr(iio_uri, classname, channel, attr, val):
>       dev = adi.ad5754r(iio_uri)

test/test_ad5754r.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
adi/ad5754r.py:56: in __init__
    tx.__init__(self)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.ad5754r.ad5754r object at 0x7f3f20ffbe80>, tx_cyclic_buffer = False

    def __init__(self, tx_cyclic_buffer=False):
        if self._complex_data:
            N = 2
        else:
            N = 1
        tx_enabled_channels = list(range(len(self._tx_channel_names) // N))
        self._num_tx_channels = len(self._tx_channel_names)
        self.tx_enabled_channels = tx_enabled_channels
        self.tx_cyclic_buffer = tx_cyclic_buffer
        dds.__init__(self)
>       if self.__is_libiio_v1():
E       TypeError: 'NoneType' object is not callable

adi/rx_tx.py:328: TypeError

Check warning on line 0 in test.test_ad5754r

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_ad5754r_channel_attr[powerup-val0-1-adi.ad5754r] (test.test_ad5754r) failed

results.xml
Raw output
iio_uri = 'ip:10.1.0.152', classname = 'adi.ad5754r', channel = 1
attr = 'powerup', val = ['powerdown', 'powerup']

    @pytest.mark.iio_hardware(hardware)
    @pytest.mark.parametrize("classname", [(classname)])
    @pytest.mark.parametrize("channel", [0, 1, 2, 3])
    @pytest.mark.parametrize(
        "attr, val",
        [
            ("powerup", ["powerdown", "powerup"],),
            (
                "range",
                [
                    "0v_to_5v",
                    "0v_to_10v",
                    "0v_to_10v8",
                    "neg5v_to_5v",
                    "neg10v_to_10v",
                    "neg10v8_to_10v8",
                ],
            ),
        ],
    )
    def test_ad5754r_channel_attr(iio_uri, classname, channel, attr, val):
>       dev = adi.ad5754r(iio_uri)

test/test_ad5754r.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
adi/ad5754r.py:56: in __init__
    tx.__init__(self)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.ad5754r.ad5754r object at 0x7f3f20f876d0>, tx_cyclic_buffer = False

    def __init__(self, tx_cyclic_buffer=False):
        if self._complex_data:
            N = 2
        else:
            N = 1
        tx_enabled_channels = list(range(len(self._tx_channel_names) // N))
        self._num_tx_channels = len(self._tx_channel_names)
        self.tx_enabled_channels = tx_enabled_channels
        self.tx_cyclic_buffer = tx_cyclic_buffer
        dds.__init__(self)
>       if self.__is_libiio_v1():
E       TypeError: 'NoneType' object is not callable

adi/rx_tx.py:328: TypeError

Check warning on line 0 in test.test_ad5754r

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_ad5754r_channel_attr[powerup-val0-2-adi.ad5754r] (test.test_ad5754r) failed

results.xml
Raw output
iio_uri = 'ip:10.1.0.152', classname = 'adi.ad5754r', channel = 2
attr = 'powerup', val = ['powerdown', 'powerup']

    @pytest.mark.iio_hardware(hardware)
    @pytest.mark.parametrize("classname", [(classname)])
    @pytest.mark.parametrize("channel", [0, 1, 2, 3])
    @pytest.mark.parametrize(
        "attr, val",
        [
            ("powerup", ["powerdown", "powerup"],),
            (
                "range",
                [
                    "0v_to_5v",
                    "0v_to_10v",
                    "0v_to_10v8",
                    "neg5v_to_5v",
                    "neg10v_to_10v",
                    "neg10v8_to_10v8",
                ],
            ),
        ],
    )
    def test_ad5754r_channel_attr(iio_uri, classname, channel, attr, val):
>       dev = adi.ad5754r(iio_uri)

test/test_ad5754r.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
adi/ad5754r.py:56: in __init__
    tx.__init__(self)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.ad5754r.ad5754r object at 0x7f3f20fe1a30>, tx_cyclic_buffer = False

    def __init__(self, tx_cyclic_buffer=False):
        if self._complex_data:
            N = 2
        else:
            N = 1
        tx_enabled_channels = list(range(len(self._tx_channel_names) // N))
        self._num_tx_channels = len(self._tx_channel_names)
        self.tx_enabled_channels = tx_enabled_channels
        self.tx_cyclic_buffer = tx_cyclic_buffer
        dds.__init__(self)
>       if self.__is_libiio_v1():
E       TypeError: 'NoneType' object is not callable

adi/rx_tx.py:328: TypeError

Check warning on line 0 in test.test_ad5754r

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_ad5754r_channel_attr[powerup-val0-3-adi.ad5754r] (test.test_ad5754r) failed

results.xml
Raw output
iio_uri = 'ip:10.1.0.152', classname = 'adi.ad5754r', channel = 3
attr = 'powerup', val = ['powerdown', 'powerup']

    @pytest.mark.iio_hardware(hardware)
    @pytest.mark.parametrize("classname", [(classname)])
    @pytest.mark.parametrize("channel", [0, 1, 2, 3])
    @pytest.mark.parametrize(
        "attr, val",
        [
            ("powerup", ["powerdown", "powerup"],),
            (
                "range",
                [
                    "0v_to_5v",
                    "0v_to_10v",
                    "0v_to_10v8",
                    "neg5v_to_5v",
                    "neg10v_to_10v",
                    "neg10v8_to_10v8",
                ],
            ),
        ],
    )
    def test_ad5754r_channel_attr(iio_uri, classname, channel, attr, val):
>       dev = adi.ad5754r(iio_uri)

test/test_ad5754r.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
adi/ad5754r.py:56: in __init__
    tx.__init__(self)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.ad5754r.ad5754r object at 0x7f3f21131ac0>, tx_cyclic_buffer = False

    def __init__(self, tx_cyclic_buffer=False):
        if self._complex_data:
            N = 2
        else:
            N = 1
        tx_enabled_channels = list(range(len(self._tx_channel_names) // N))
        self._num_tx_channels = len(self._tx_channel_names)
        self.tx_enabled_channels = tx_enabled_channels
        self.tx_cyclic_buffer = tx_cyclic_buffer
        dds.__init__(self)
>       if self.__is_libiio_v1():
E       TypeError: 'NoneType' object is not callable

adi/rx_tx.py:328: TypeError

Check warning on line 0 in test.test_ad5754r

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_ad5754r_channel_attr[range-val1-0-adi.ad5754r] (test.test_ad5754r) failed

results.xml
Raw output
iio_uri = 'ip:10.1.0.152', classname = 'adi.ad5754r', channel = 0
attr = 'range'
val = ['0v_to_5v', '0v_to_10v', '0v_to_10v8', 'neg5v_to_5v', 'neg10v_to_10v', 'neg10v8_to_10v8']

    @pytest.mark.iio_hardware(hardware)
    @pytest.mark.parametrize("classname", [(classname)])
    @pytest.mark.parametrize("channel", [0, 1, 2, 3])
    @pytest.mark.parametrize(
        "attr, val",
        [
            ("powerup", ["powerdown", "powerup"],),
            (
                "range",
                [
                    "0v_to_5v",
                    "0v_to_10v",
                    "0v_to_10v8",
                    "neg5v_to_5v",
                    "neg10v_to_10v",
                    "neg10v8_to_10v8",
                ],
            ),
        ],
    )
    def test_ad5754r_channel_attr(iio_uri, classname, channel, attr, val):
>       dev = adi.ad5754r(iio_uri)

test/test_ad5754r.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
adi/ad5754r.py:56: in __init__
    tx.__init__(self)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.ad5754r.ad5754r object at 0x7f3f20ffdeb0>, tx_cyclic_buffer = False

    def __init__(self, tx_cyclic_buffer=False):
        if self._complex_data:
            N = 2
        else:
            N = 1
        tx_enabled_channels = list(range(len(self._tx_channel_names) // N))
        self._num_tx_channels = len(self._tx_channel_names)
        self.tx_enabled_channels = tx_enabled_channels
        self.tx_cyclic_buffer = tx_cyclic_buffer
        dds.__init__(self)
>       if self.__is_libiio_v1():
E       TypeError: 'NoneType' object is not callable

adi/rx_tx.py:328: TypeError

Check warning on line 0 in test.test_ad5754r

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_ad5754r_channel_attr[range-val1-1-adi.ad5754r] (test.test_ad5754r) failed

results.xml
Raw output
iio_uri = 'ip:10.1.0.152', classname = 'adi.ad5754r', channel = 1
attr = 'range'
val = ['0v_to_5v', '0v_to_10v', '0v_to_10v8', 'neg5v_to_5v', 'neg10v_to_10v', 'neg10v8_to_10v8']

    @pytest.mark.iio_hardware(hardware)
    @pytest.mark.parametrize("classname", [(classname)])
    @pytest.mark.parametrize("channel", [0, 1, 2, 3])
    @pytest.mark.parametrize(
        "attr, val",
        [
            ("powerup", ["powerdown", "powerup"],),
            (
                "range",
                [
                    "0v_to_5v",
                    "0v_to_10v",
                    "0v_to_10v8",
                    "neg5v_to_5v",
                    "neg10v_to_10v",
                    "neg10v8_to_10v8",
                ],
            ),
        ],
    )
    def test_ad5754r_channel_attr(iio_uri, classname, channel, attr, val):
>       dev = adi.ad5754r(iio_uri)

test/test_ad5754r.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
adi/ad5754r.py:56: in __init__
    tx.__init__(self)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.ad5754r.ad5754r object at 0x7f3f20ffb2b0>, tx_cyclic_buffer = False

    def __init__(self, tx_cyclic_buffer=False):
        if self._complex_data:
            N = 2
        else:
            N = 1
        tx_enabled_channels = list(range(len(self._tx_channel_names) // N))
        self._num_tx_channels = len(self._tx_channel_names)
        self.tx_enabled_channels = tx_enabled_channels
        self.tx_cyclic_buffer = tx_cyclic_buffer
        dds.__init__(self)
>       if self.__is_libiio_v1():
E       TypeError: 'NoneType' object is not callable

adi/rx_tx.py:328: TypeError

Check warning on line 0 in test.test_ad5754r

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_ad5754r_channel_attr[range-val1-2-adi.ad5754r] (test.test_ad5754r) failed

results.xml
Raw output
iio_uri = 'ip:10.1.0.152', classname = 'adi.ad5754r', channel = 2
attr = 'range'
val = ['0v_to_5v', '0v_to_10v', '0v_to_10v8', 'neg5v_to_5v', 'neg10v_to_10v', 'neg10v8_to_10v8']

    @pytest.mark.iio_hardware(hardware)
    @pytest.mark.parametrize("classname", [(classname)])
    @pytest.mark.parametrize("channel", [0, 1, 2, 3])
    @pytest.mark.parametrize(
        "attr, val",
        [
            ("powerup", ["powerdown", "powerup"],),
            (
                "range",
                [
                    "0v_to_5v",
                    "0v_to_10v",
                    "0v_to_10v8",
                    "neg5v_to_5v",
                    "neg10v_to_10v",
                    "neg10v8_to_10v8",
                ],
            ),
        ],
    )
    def test_ad5754r_channel_attr(iio_uri, classname, channel, attr, val):
>       dev = adi.ad5754r(iio_uri)

test/test_ad5754r.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
adi/ad5754r.py:56: in __init__
    tx.__init__(self)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.ad5754r.ad5754r object at 0x7f3f21150640>, tx_cyclic_buffer = False

    def __init__(self, tx_cyclic_buffer=False):
        if self._complex_data:
            N = 2
        else:
            N = 1
        tx_enabled_channels = list(range(len(self._tx_channel_names) // N))
        self._num_tx_channels = len(self._tx_channel_names)
        self.tx_enabled_channels = tx_enabled_channels
        self.tx_cyclic_buffer = tx_cyclic_buffer
        dds.__init__(self)
>       if self.__is_libiio_v1():
E       TypeError: 'NoneType' object is not callable

adi/rx_tx.py:328: TypeError

Check warning on line 0 in test.test_ad5754r

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_ad5754r_channel_attr[range-val1-3-adi.ad5754r] (test.test_ad5754r) failed

results.xml
Raw output
iio_uri = 'ip:10.1.0.152', classname = 'adi.ad5754r', channel = 3
attr = 'range'
val = ['0v_to_5v', '0v_to_10v', '0v_to_10v8', 'neg5v_to_5v', 'neg10v_to_10v', 'neg10v8_to_10v8']

    @pytest.mark.iio_hardware(hardware)
    @pytest.mark.parametrize("classname", [(classname)])
    @pytest.mark.parametrize("channel", [0, 1, 2, 3])
    @pytest.mark.parametrize(
        "attr, val",
        [
            ("powerup", ["powerdown", "powerup"],),
            (
                "range",
                [
                    "0v_to_5v",
                    "0v_to_10v",
                    "0v_to_10v8",
                    "neg5v_to_5v",
                    "neg10v_to_10v",
                    "neg10v8_to_10v8",
                ],
            ),
        ],
    )
    def test_ad5754r_channel_attr(iio_uri, classname, channel, attr, val):
>       dev = adi.ad5754r(iio_uri)

test/test_ad5754r.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
adi/ad5754r.py:56: in __init__
    tx.__init__(self)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.ad5754r.ad5754r object at 0x7f3f21131070>, tx_cyclic_buffer = False

    def __init__(self, tx_cyclic_buffer=False):
        if self._complex_data:
            N = 2
        else:
            N = 1
        tx_enabled_channels = list(range(len(self._tx_channel_names) // N))
        self._num_tx_channels = len(self._tx_channel_names)
        self.tx_enabled_channels = tx_enabled_channels
        self.tx_cyclic_buffer = tx_cyclic_buffer
        dds.__init__(self)
>       if self.__is_libiio_v1():
E       TypeError: 'NoneType' object is not callable

adi/rx_tx.py:328: TypeError

Check warning on line 0 in test.test_ad7768

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_ad4630_attr[sampling_frequency-val0-adi.ad7768] (test.test_ad7768) failed

results.xml
Raw output
test_attribute_multiple_values = <function attribute_multiple_values at 0x7f3f2c2ca3a0>
iio_uri = 'ip:10.1.0.152', classname = 'adi.ad7768', attr = 'sampling_frequency'
val = [1000, 2000, 4000, 8000, 16000, 32000, ...]

    @pytest.mark.iio_hardware(hardware)
    @pytest.mark.parametrize("classname", [(classname)])
    @pytest.mark.parametrize(
        "attr, val",
        [
            (
                "sampling_frequency",
                [
                    1000,
                    2000,
                    4000,
                    8000,
                    16000,
                    32000,
                    64000,
                    128000,
                    256000,
                    32000,
                ],  # End on a rate compatible with all power modes
            ),
            ("filter_type", ["WIDEBAND", "SINC5"],),
            ("power_mode", ["MEDIAN_MODE", "FAST_MODE"],),
        ],
    )
    def test_ad4630_attr(test_attribute_multiple_values, iio_uri, classname, attr, val):
>       test_attribute_multiple_values(iio_uri, classname, attr, val, 0)

test/test_ad7768.py:40: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test/attr_tests.py:220: in attribute_multiple_values
    assert dev_interface(uri, classname, val, attr, tol, sleep=sleep)
test/common.py:101: in dev_interface
    sdr = eval(classname + "(uri='" + uri + "')")
<string>:1: in <module>
    ???
adi/ad7768.py:42: in __init__
    rx.__init__(self)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.ad7768.ad7768 object at 0x7f3f21012700>, rx_buffer_size = 1024

    def __init__(self, rx_buffer_size=1024):
        if self._complex_data:
            N = 2
        else:
            N = 1
        rx_enabled_channels = list(range(len(self._rx_channel_names) // N))
        self._num_rx_channels = len(self._rx_channel_names)
        self.rx_enabled_channels = rx_enabled_channels
        self.rx_buffer_size = rx_buffer_size
>       if self.__is_libiio_v1():
E       TypeError: 'NoneType' object is not callable

adi/rx_tx.py:57: TypeError

Check warning on line 0 in test.test_ad7768

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_ad4630_attr[filter_type-val1-adi.ad7768] (test.test_ad7768) failed

results.xml
Raw output
test_attribute_multiple_values = <function attribute_multiple_values at 0x7f3f2c2ca3a0>
iio_uri = 'ip:10.1.0.152', classname = 'adi.ad7768', attr = 'filter_type'
val = ['WIDEBAND', 'SINC5']

    @pytest.mark.iio_hardware(hardware)
    @pytest.mark.parametrize("classname", [(classname)])
    @pytest.mark.parametrize(
        "attr, val",
        [
            (
                "sampling_frequency",
                [
                    1000,
                    2000,
                    4000,
                    8000,
                    16000,
                    32000,
                    64000,
                    128000,
                    256000,
                    32000,
                ],  # End on a rate compatible with all power modes
            ),
            ("filter_type", ["WIDEBAND", "SINC5"],),
            ("power_mode", ["MEDIAN_MODE", "FAST_MODE"],),
        ],
    )
    def test_ad4630_attr(test_attribute_multiple_values, iio_uri, classname, attr, val):
>       test_attribute_multiple_values(iio_uri, classname, attr, val, 0)

test/test_ad7768.py:40: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test/attr_tests.py:220: in attribute_multiple_values
    assert dev_interface(uri, classname, val, attr, tol, sleep=sleep)
test/common.py:101: in dev_interface
    sdr = eval(classname + "(uri='" + uri + "')")
<string>:1: in <module>
    ???
adi/ad7768.py:42: in __init__
    rx.__init__(self)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.ad7768.ad7768 object at 0x7f3f20f6bb80>, rx_buffer_size = 1024

    def __init__(self, rx_buffer_size=1024):
        if self._complex_data:
            N = 2
        else:
            N = 1
        rx_enabled_channels = list(range(len(self._rx_channel_names) // N))
        self._num_rx_channels = len(self._rx_channel_names)
        self.rx_enabled_channels = rx_enabled_channels
        self.rx_buffer_size = rx_buffer_size
>       if self.__is_libiio_v1():
E       TypeError: 'NoneType' object is not callable

adi/rx_tx.py:57: TypeError

Check warning on line 0 in test.test_ad7768

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_ad4630_attr[power_mode-val2-adi.ad7768] (test.test_ad7768) failed

results.xml
Raw output
test_attribute_multiple_values = <function attribute_multiple_values at 0x7f3f2c2ca3a0>
iio_uri = 'ip:10.1.0.152', classname = 'adi.ad7768', attr = 'power_mode'
val = ['MEDIAN_MODE', 'FAST_MODE']

    @pytest.mark.iio_hardware(hardware)
    @pytest.mark.parametrize("classname", [(classname)])
    @pytest.mark.parametrize(
        "attr, val",
        [
            (
                "sampling_frequency",
                [
                    1000,
                    2000,
                    4000,
                    8000,
                    16000,
                    32000,
                    64000,
                    128000,
                    256000,
                    32000,
                ],  # End on a rate compatible with all power modes
            ),
            ("filter_type", ["WIDEBAND", "SINC5"],),
            ("power_mode", ["MEDIAN_MODE", "FAST_MODE"],),
        ],
    )
    def test_ad4630_attr(test_attribute_multiple_values, iio_uri, classname, attr, val):
>       test_attribute_multiple_values(iio_uri, classname, attr, val, 0)

test/test_ad7768.py:40: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test/attr_tests.py:220: in attribute_multiple_values
    assert dev_interface(uri, classname, val, attr, tol, sleep=sleep)
test/common.py:101: in dev_interface
    sdr = eval(classname + "(uri='" + uri + "')")
<string>:1: in <module>
    ???
adi/ad7768.py:42: in __init__
    rx.__init__(self)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.ad7768.ad7768 object at 0x7f3f20f45610>, rx_buffer_size = 1024

    def __init__(self, rx_buffer_size=1024):
        if self._complex_data:
            N = 2
        else:
            N = 1
        rx_enabled_channels = list(range(len(self._rx_channel_names) // N))
        self._num_rx_channels = len(self._rx_channel_names)
        self.rx_enabled_channels = rx_enabled_channels
        self.rx_buffer_size = rx_buffer_size
>       if self.__is_libiio_v1():
E       TypeError: 'NoneType' object is not callable

adi/rx_tx.py:57: TypeError

Check warning on line 0 in test.test_ad7768_4

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_ad7768_4_attr[sampling_frequency-val0-adi.ad7768_4] (test.test_ad7768_4) failed

results.xml
Raw output
test_attribute_multiple_values = <function attribute_multiple_values at 0x7f3f2c2ca3a0>
iio_uri = 'ip:10.1.0.152', classname = 'adi.ad7768_4'
attr = 'sampling_frequency', val = [1000, 2000, 4000, 8000, 16000, 32000, ...]

    @pytest.mark.iio_hardware(hardware)
    @pytest.mark.parametrize("classname", [(classname)])
    @pytest.mark.parametrize(
        "attr, val",
        [
            (
                "sampling_frequency",
                [
                    1000,
                    2000,
                    4000,
                    8000,
                    16000,
                    32000,
                    64000,
                    128000,
                    256000,
                    32000,
                ],  # End on a rate compatible with all power modes
            ),
            ("filter_type", ["WIDEBAND", "SINC5"],),
            ("power_mode", ["MEDIAN_MODE", "FAST_MODE"],),
            ("sync_start_enable", ["arm"],),
        ],
    )
    def test_ad7768_4_attr(test_attribute_multiple_values, iio_uri, classname, attr, val):
>       test_attribute_multiple_values(iio_uri, classname, attr, val, 0)

test/test_ad7768_4.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test/attr_tests.py:220: in attribute_multiple_values
    assert dev_interface(uri, classname, val, attr, tol, sleep=sleep)
test/common.py:101: in dev_interface
    sdr = eval(classname + "(uri='" + uri + "')")
<string>:1: in <module>
    ???
adi/ad7768.py:42: in __init__
    rx.__init__(self)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.ad7768.ad7768_4 object at 0x7f3f20f29be0>, rx_buffer_size = 1024

    def __init__(self, rx_buffer_size=1024):
        if self._complex_data:
            N = 2
        else:
            N = 1
        rx_enabled_channels = list(range(len(self._rx_channel_names) // N))
        self._num_rx_channels = len(self._rx_channel_names)
        self.rx_enabled_channels = rx_enabled_channels
        self.rx_buffer_size = rx_buffer_size
>       if self.__is_libiio_v1():
E       TypeError: 'NoneType' object is not callable

adi/rx_tx.py:57: TypeError

Check warning on line 0 in test.test_ad7768_4

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_ad7768_4_attr[filter_type-val1-adi.ad7768_4] (test.test_ad7768_4) failed

results.xml
Raw output
test_attribute_multiple_values = <function attribute_multiple_values at 0x7f3f2c2ca3a0>
iio_uri = 'ip:10.1.0.152', classname = 'adi.ad7768_4', attr = 'filter_type'
val = ['WIDEBAND', 'SINC5']

    @pytest.mark.iio_hardware(hardware)
    @pytest.mark.parametrize("classname", [(classname)])
    @pytest.mark.parametrize(
        "attr, val",
        [
            (
                "sampling_frequency",
                [
                    1000,
                    2000,
                    4000,
                    8000,
                    16000,
                    32000,
                    64000,
                    128000,
                    256000,
                    32000,
                ],  # End on a rate compatible with all power modes
            ),
            ("filter_type", ["WIDEBAND", "SINC5"],),
            ("power_mode", ["MEDIAN_MODE", "FAST_MODE"],),
            ("sync_start_enable", ["arm"],),
        ],
    )
    def test_ad7768_4_attr(test_attribute_multiple_values, iio_uri, classname, attr, val):
>       test_attribute_multiple_values(iio_uri, classname, attr, val, 0)

test/test_ad7768_4.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test/attr_tests.py:220: in attribute_multiple_values
    assert dev_interface(uri, classname, val, attr, tol, sleep=sleep)
test/common.py:101: in dev_interface
    sdr = eval(classname + "(uri='" + uri + "')")
<string>:1: in <module>
    ???
adi/ad7768.py:42: in __init__
    rx.__init__(self)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.ad7768.ad7768_4 object at 0x7f3f20f73280>, rx_buffer_size = 1024

    def __init__(self, rx_buffer_size=1024):
        if self._complex_data:
            N = 2
        else:
            N = 1
        rx_enabled_channels = list(range(len(self._rx_channel_names) // N))
        self._num_rx_channels = len(self._rx_channel_names)
        self.rx_enabled_channels = rx_enabled_channels
        self.rx_buffer_size = rx_buffer_size
>       if self.__is_libiio_v1():
E       TypeError: 'NoneType' object is not callable

adi/rx_tx.py:57: TypeError

Check warning on line 0 in test.test_ad7768_4

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_ad7768_4_attr[power_mode-val2-adi.ad7768_4] (test.test_ad7768_4) failed

results.xml
Raw output
test_attribute_multiple_values = <function attribute_multiple_values at 0x7f3f2c2ca3a0>
iio_uri = 'ip:10.1.0.152', classname = 'adi.ad7768_4', attr = 'power_mode'
val = ['MEDIAN_MODE', 'FAST_MODE']

    @pytest.mark.iio_hardware(hardware)
    @pytest.mark.parametrize("classname", [(classname)])
    @pytest.mark.parametrize(
        "attr, val",
        [
            (
                "sampling_frequency",
                [
                    1000,
                    2000,
                    4000,
                    8000,
                    16000,
                    32000,
                    64000,
                    128000,
                    256000,
                    32000,
                ],  # End on a rate compatible with all power modes
            ),
            ("filter_type", ["WIDEBAND", "SINC5"],),
            ("power_mode", ["MEDIAN_MODE", "FAST_MODE"],),
            ("sync_start_enable", ["arm"],),
        ],
    )
    def test_ad7768_4_attr(test_attribute_multiple_values, iio_uri, classname, attr, val):
>       test_attribute_multiple_values(iio_uri, classname, attr, val, 0)

test/test_ad7768_4.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test/attr_tests.py:220: in attribute_multiple_values
    assert dev_interface(uri, classname, val, attr, tol, sleep=sleep)
test/common.py:101: in dev_interface
    sdr = eval(classname + "(uri='" + uri + "')")
<string>:1: in <module>
    ???
adi/ad7768.py:42: in __init__
    rx.__init__(self)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.ad7768.ad7768_4 object at 0x7f3f20fd6850>, rx_buffer_size = 1024

    def __init__(self, rx_buffer_size=1024):
        if self._complex_data:
            N = 2
        else:
            N = 1
        rx_enabled_channels = list(range(len(self._rx_channel_names) // N))
        self._num_rx_channels = len(self._rx_channel_names)
        self.rx_enabled_channels = rx_enabled_channels
        self.rx_buffer_size = rx_buffer_size
>       if self.__is_libiio_v1():
E       TypeError: 'NoneType' object is not callable

adi/rx_tx.py:57: TypeError

Check warning on line 0 in test.test_ad7768_4

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_ad7768_4_attr[sync_start_enable-val3-adi.ad7768_4] (test.test_ad7768_4) failed

results.xml
Raw output
test_attribute_multiple_values = <function attribute_multiple_values at 0x7f3f2c2ca3a0>
iio_uri = 'ip:10.1.0.152', classname = 'adi.ad7768_4'
attr = 'sync_start_enable', val = ['arm']

    @pytest.mark.iio_hardware(hardware)
    @pytest.mark.parametrize("classname", [(classname)])
    @pytest.mark.parametrize(
        "attr, val",
        [
            (
                "sampling_frequency",
                [
                    1000,
                    2000,
                    4000,
                    8000,
                    16000,
                    32000,
                    64000,
                    128000,
                    256000,
                    32000,
                ],  # End on a rate compatible with all power modes
            ),
            ("filter_type", ["WIDEBAND", "SINC5"],),
            ("power_mode", ["MEDIAN_MODE", "FAST_MODE"],),
            ("sync_start_enable", ["arm"],),
        ],
    )
    def test_ad7768_4_attr(test_attribute_multiple_values, iio_uri, classname, attr, val):
>       test_attribute_multiple_values(iio_uri, classname, attr, val, 0)

test/test_ad7768_4.py:41: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test/attr_tests.py:220: in attribute_multiple_values
    assert dev_interface(uri, classname, val, attr, tol, sleep=sleep)
test/common.py:101: in dev_interface
    sdr = eval(classname + "(uri='" + uri + "')")
<string>:1: in <module>
    ???
adi/ad7768.py:42: in __init__
    rx.__init__(self)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.ad7768.ad7768_4 object at 0x7f3f20f73b20>, rx_buffer_size = 1024

    def __init__(self, rx_buffer_size=1024):
        if self._complex_data:
            N = 2
        else:
            N = 1
        rx_enabled_channels = list(range(len(self._rx_channel_names) // N))
        self._num_rx_channels = len(self._rx_channel_names)
        self.rx_enabled_channels = rx_enabled_channels
        self.rx_buffer_size = rx_buffer_size
>       if self.__is_libiio_v1():
E       TypeError: 'NoneType' object is not callable

adi/rx_tx.py:57: TypeError

Check warning on line 0 in test.test_ad9081

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_ad9081_str_attr[rx_nyquist_zone-val0-adi.ad9081] (test.test_ad9081) failed

results.xml
Raw output
test_attribute_multiple_values = <function attribute_multiple_values at 0x7f3f2c2ca3a0>
iio_uri = 'ip:10.1.0.152', classname = 'adi.ad9081', attr = 'rx_nyquist_zone'
val = ['even', 'odd']

    @pytest.mark.iio_hardware(hardware)
    @pytest.mark.parametrize("classname", [(classname)])
    @pytest.mark.parametrize(
        "attr, val",
        [
            ("rx_nyquist_zone", ["even", "odd"]),
            ("loopback_mode", [2, 1, 0]),
            (
                "rx_test_mode",
                [
                    "midscale_short",
                    "pos_fullscale",
                    "neg_fullscale",
                    "checkerboard",
                    "pn23",
                    "pn9",
                    "one_zero_toggle",
                    "user",
                    "pn7",
                    "pn15",
                    "pn31",
                    "ramp",
                    "off",
                ],
            ),
            (
                "tx_main_ffh_mode",
                ["phase_continuous", "phase_incontinuous", "phase_coherent"],
            ),
        ],
    )
    def test_ad9081_str_attr(test_attribute_multiple_values, iio_uri, classname, attr, val):
>       test_attribute_multiple_values(iio_uri, classname, attr, val, 0)

test/test_ad9081.py:55: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test/attr_tests.py:220: in attribute_multiple_values
    assert dev_interface(uri, classname, val, attr, tol, sleep=sleep)
test/common.py:101: in dev_interface
    sdr = eval(classname + "(uri='" + uri + "')")
<string>:1: in <module>
    ???
adi/ad9081.py:122: in __init__
    rx_tx.__init__(self)
adi/rx_tx.py:525: in __init__
    rx.__init__(self)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.ad9081.ad9081 object at 0x7f3f210d4d90>, rx_buffer_size = 1024

    def __init__(self, rx_buffer_size=1024):
        if self._complex_data:
            N = 2
        else:
            N = 1
        rx_enabled_channels = list(range(len(self._rx_channel_names) // N))
        self._num_rx_channels = len(self._rx_channel_names)
        self.rx_enabled_channels = rx_enabled_channels
        self.rx_buffer_size = rx_buffer_size
>       if self.__is_libiio_v1():
E       TypeError: 'NoneType' object is not callable

adi/rx_tx.py:57: TypeError

Check warning on line 0 in test.test_ad9081

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_ad9081_str_attr[loopback_mode-val1-adi.ad9081] (test.test_ad9081) failed

results.xml
Raw output
test_attribute_multiple_values = <function attribute_multiple_values at 0x7f3f2c2ca3a0>
iio_uri = 'ip:10.1.0.152', classname = 'adi.ad9081', attr = 'loopback_mode'
val = [2, 1, 0]

    @pytest.mark.iio_hardware(hardware)
    @pytest.mark.parametrize("classname", [(classname)])
    @pytest.mark.parametrize(
        "attr, val",
        [
            ("rx_nyquist_zone", ["even", "odd"]),
            ("loopback_mode", [2, 1, 0]),
            (
                "rx_test_mode",
                [
                    "midscale_short",
                    "pos_fullscale",
                    "neg_fullscale",
                    "checkerboard",
                    "pn23",
                    "pn9",
                    "one_zero_toggle",
                    "user",
                    "pn7",
                    "pn15",
                    "pn31",
                    "ramp",
                    "off",
                ],
            ),
            (
                "tx_main_ffh_mode",
                ["phase_continuous", "phase_incontinuous", "phase_coherent"],
            ),
        ],
    )
    def test_ad9081_str_attr(test_attribute_multiple_values, iio_uri, classname, attr, val):
>       test_attribute_multiple_values(iio_uri, classname, attr, val, 0)

test/test_ad9081.py:55: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test/attr_tests.py:220: in attribute_multiple_values
    assert dev_interface(uri, classname, val, attr, tol, sleep=sleep)
test/common.py:101: in dev_interface
    sdr = eval(classname + "(uri='" + uri + "')")
<string>:1: in <module>
    ???
adi/ad9081.py:122: in __init__
    rx_tx.__init__(self)
adi/rx_tx.py:525: in __init__
    rx.__init__(self)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.ad9081.ad9081 object at 0x7f3f20fc6550>, rx_buffer_size = 1024

    def __init__(self, rx_buffer_size=1024):
        if self._complex_data:
            N = 2
        else:
            N = 1
        rx_enabled_channels = list(range(len(self._rx_channel_names) // N))
        self._num_rx_channels = len(self._rx_channel_names)
        self.rx_enabled_channels = rx_enabled_channels
        self.rx_buffer_size = rx_buffer_size
>       if self.__is_libiio_v1():
E       TypeError: 'NoneType' object is not callable

adi/rx_tx.py:57: TypeError

Check warning on line 0 in test.test_ad9081

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_ad9081_str_attr[rx_test_mode-val2-adi.ad9081] (test.test_ad9081) failed

results.xml
Raw output
test_attribute_multiple_values = <function attribute_multiple_values at 0x7f3f2c2ca3a0>
iio_uri = 'ip:10.1.0.152', classname = 'adi.ad9081', attr = 'rx_test_mode'
val = ['midscale_short', 'pos_fullscale', 'neg_fullscale', 'checkerboard', 'pn23', 'pn9', ...]

    @pytest.mark.iio_hardware(hardware)
    @pytest.mark.parametrize("classname", [(classname)])
    @pytest.mark.parametrize(
        "attr, val",
        [
            ("rx_nyquist_zone", ["even", "odd"]),
            ("loopback_mode", [2, 1, 0]),
            (
                "rx_test_mode",
                [
                    "midscale_short",
                    "pos_fullscale",
                    "neg_fullscale",
                    "checkerboard",
                    "pn23",
                    "pn9",
                    "one_zero_toggle",
                    "user",
                    "pn7",
                    "pn15",
                    "pn31",
                    "ramp",
                    "off",
                ],
            ),
            (
                "tx_main_ffh_mode",
                ["phase_continuous", "phase_incontinuous", "phase_coherent"],
            ),
        ],
    )
    def test_ad9081_str_attr(test_attribute_multiple_values, iio_uri, classname, attr, val):
>       test_attribute_multiple_values(iio_uri, classname, attr, val, 0)

test/test_ad9081.py:55: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test/attr_tests.py:220: in attribute_multiple_values
    assert dev_interface(uri, classname, val, attr, tol, sleep=sleep)
test/common.py:101: in dev_interface
    sdr = eval(classname + "(uri='" + uri + "')")
<string>:1: in <module>
    ???
adi/ad9081.py:122: in __init__
    rx_tx.__init__(self)
adi/rx_tx.py:525: in __init__
    rx.__init__(self)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <adi.ad9081.ad9081 object at 0x7f3f21150700>, rx_buffer_size = 1024

    def __init__(self, rx_buffer_size=1024):
        if self._complex_data:
            N = 2
        else:
            N = 1
        rx_enabled_channels = list(range(len(self._rx_channel_names) // N))
        self._num_rx_channels = len(self._rx_channel_names)
        self.rx_enabled_channels = rx_enabled_channels
        self.rx_buffer_size = rx_buffer_size
>       if self.__is_libiio_v1():
E       TypeError: 'NoneType' object is not callable

adi/rx_tx.py:57: TypeError