Add support for LTC2672 #40
10 fail, 1 186 skipped, 284 pass in 9m 59s
Annotations
Check warning on line 0 in test.test_ltc2672
github-actions / Test Results
test_ltc2672_channel_attr[span-val0-0-adi.ltc2672] (test.test_ltc2672) failed
results.xml [took 3s]
Raw output
ValueError: Error: span setting not supported
Use one of: str(self.span_avail)
iio_uri = 'ip:10.1.1.152', classname = 'adi.ltc2672', channel = 0, attr = 'span'
val = ['off_mode', '3.125mA', '6.25mA', '12.5mA', '25mA', '50mA', ...]
@pytest.mark.iio_hardware(hardware)
@pytest.mark.parametrize("classname", [(classname)])
@pytest.mark.parametrize("channel", [0, 1, 2, 3, 4])
@pytest.mark.parametrize(
"attr, val",
[
(
"span",
[
"off_mode",
"3.125mA",
"6.25mA",
"12.5mA",
"25mA",
"50mA",
"100mA",
"200mA",
"MVREF",
"300mA",
],
),
("powerdown", ["powerdown"],),
],
)
def test_ltc2672_channel_attr(iio_uri, classname, channel, attr, val):
dev = adi.ltc2672(iio_uri)
dev_chan = dev.channel[channel]
for value in val:
> setattr(dev_chan, attr, value)
test/test_ltc2672.py:68:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <adi.ltc2672.ltc2672._channel object at 0x7f26c1ab3a00>
value = 'off_mode'
@span.setter
def span(self, value):
"""Set channel span setting"""
if value in self.span_avail:
self._set_iio_attr(self.name, "span", True, value)
else:
> raise ValueError(
"Error: span setting not supported \nUse one of: "
"str(self.span_avail)"
)
E ValueError: Error: span setting not supported
E Use one of: str(self.span_avail)
adi/ltc2672.py:195: ValueError
Check warning on line 0 in test.test_ltc2672
github-actions / Test Results
test_ltc2672_channel_attr[span-val0-1-adi.ltc2672] (test.test_ltc2672) failed
results.xml [took 0s]
Raw output
ValueError: Error: span setting not supported
Use one of: str(self.span_avail)
iio_uri = 'ip:10.1.1.152', classname = 'adi.ltc2672', channel = 1, attr = 'span'
val = ['off_mode', '3.125mA', '6.25mA', '12.5mA', '25mA', '50mA', ...]
@pytest.mark.iio_hardware(hardware)
@pytest.mark.parametrize("classname", [(classname)])
@pytest.mark.parametrize("channel", [0, 1, 2, 3, 4])
@pytest.mark.parametrize(
"attr, val",
[
(
"span",
[
"off_mode",
"3.125mA",
"6.25mA",
"12.5mA",
"25mA",
"50mA",
"100mA",
"200mA",
"MVREF",
"300mA",
],
),
("powerdown", ["powerdown"],),
],
)
def test_ltc2672_channel_attr(iio_uri, classname, channel, attr, val):
dev = adi.ltc2672(iio_uri)
dev_chan = dev.channel[channel]
for value in val:
> setattr(dev_chan, attr, value)
test/test_ltc2672.py:68:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <adi.ltc2672.ltc2672._channel object at 0x7f26c1b2da00>
value = 'off_mode'
@span.setter
def span(self, value):
"""Set channel span setting"""
if value in self.span_avail:
self._set_iio_attr(self.name, "span", True, value)
else:
> raise ValueError(
"Error: span setting not supported \nUse one of: "
"str(self.span_avail)"
)
E ValueError: Error: span setting not supported
E Use one of: str(self.span_avail)
adi/ltc2672.py:195: ValueError
Check warning on line 0 in test.test_ltc2672
github-actions / Test Results
test_ltc2672_channel_attr[span-val0-2-adi.ltc2672] (test.test_ltc2672) failed
results.xml [took 0s]
Raw output
ValueError: Error: span setting not supported
Use one of: str(self.span_avail)
iio_uri = 'ip:10.1.1.152', classname = 'adi.ltc2672', channel = 2, attr = 'span'
val = ['off_mode', '3.125mA', '6.25mA', '12.5mA', '25mA', '50mA', ...]
@pytest.mark.iio_hardware(hardware)
@pytest.mark.parametrize("classname", [(classname)])
@pytest.mark.parametrize("channel", [0, 1, 2, 3, 4])
@pytest.mark.parametrize(
"attr, val",
[
(
"span",
[
"off_mode",
"3.125mA",
"6.25mA",
"12.5mA",
"25mA",
"50mA",
"100mA",
"200mA",
"MVREF",
"300mA",
],
),
("powerdown", ["powerdown"],),
],
)
def test_ltc2672_channel_attr(iio_uri, classname, channel, attr, val):
dev = adi.ltc2672(iio_uri)
dev_chan = dev.channel[channel]
for value in val:
> setattr(dev_chan, attr, value)
test/test_ltc2672.py:68:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <adi.ltc2672.ltc2672._channel object at 0x7f26c1a92490>
value = 'off_mode'
@span.setter
def span(self, value):
"""Set channel span setting"""
if value in self.span_avail:
self._set_iio_attr(self.name, "span", True, value)
else:
> raise ValueError(
"Error: span setting not supported \nUse one of: "
"str(self.span_avail)"
)
E ValueError: Error: span setting not supported
E Use one of: str(self.span_avail)
adi/ltc2672.py:195: ValueError
Check warning on line 0 in test.test_ltc2672
github-actions / Test Results
test_ltc2672_channel_attr[span-val0-3-adi.ltc2672] (test.test_ltc2672) failed
results.xml [took 0s]
Raw output
ValueError: Error: span setting not supported
Use one of: str(self.span_avail)
iio_uri = 'ip:10.1.1.152', classname = 'adi.ltc2672', channel = 3, attr = 'span'
val = ['off_mode', '3.125mA', '6.25mA', '12.5mA', '25mA', '50mA', ...]
@pytest.mark.iio_hardware(hardware)
@pytest.mark.parametrize("classname", [(classname)])
@pytest.mark.parametrize("channel", [0, 1, 2, 3, 4])
@pytest.mark.parametrize(
"attr, val",
[
(
"span",
[
"off_mode",
"3.125mA",
"6.25mA",
"12.5mA",
"25mA",
"50mA",
"100mA",
"200mA",
"MVREF",
"300mA",
],
),
("powerdown", ["powerdown"],),
],
)
def test_ltc2672_channel_attr(iio_uri, classname, channel, attr, val):
dev = adi.ltc2672(iio_uri)
dev_chan = dev.channel[channel]
for value in val:
> setattr(dev_chan, attr, value)
test/test_ltc2672.py:68:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <adi.ltc2672.ltc2672._channel object at 0x7f26c1a924f0>
value = 'off_mode'
@span.setter
def span(self, value):
"""Set channel span setting"""
if value in self.span_avail:
self._set_iio_attr(self.name, "span", True, value)
else:
> raise ValueError(
"Error: span setting not supported \nUse one of: "
"str(self.span_avail)"
)
E ValueError: Error: span setting not supported
E Use one of: str(self.span_avail)
adi/ltc2672.py:195: ValueError
Check warning on line 0 in test.test_ltc2672
github-actions / Test Results
test_ltc2672_channel_attr[span-val0-4-adi.ltc2672] (test.test_ltc2672) failed
results.xml [took 0s]
Raw output
ValueError: Error: span setting not supported
Use one of: str(self.span_avail)
iio_uri = 'ip:10.1.1.152', classname = 'adi.ltc2672', channel = 4, attr = 'span'
val = ['off_mode', '3.125mA', '6.25mA', '12.5mA', '25mA', '50mA', ...]
@pytest.mark.iio_hardware(hardware)
@pytest.mark.parametrize("classname", [(classname)])
@pytest.mark.parametrize("channel", [0, 1, 2, 3, 4])
@pytest.mark.parametrize(
"attr, val",
[
(
"span",
[
"off_mode",
"3.125mA",
"6.25mA",
"12.5mA",
"25mA",
"50mA",
"100mA",
"200mA",
"MVREF",
"300mA",
],
),
("powerdown", ["powerdown"],),
],
)
def test_ltc2672_channel_attr(iio_uri, classname, channel, attr, val):
dev = adi.ltc2672(iio_uri)
dev_chan = dev.channel[channel]
for value in val:
> setattr(dev_chan, attr, value)
test/test_ltc2672.py:68:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <adi.ltc2672.ltc2672._channel object at 0x7f26c1a92550>
value = 'off_mode'
@span.setter
def span(self, value):
"""Set channel span setting"""
if value in self.span_avail:
self._set_iio_attr(self.name, "span", True, value)
else:
> raise ValueError(
"Error: span setting not supported \nUse one of: "
"str(self.span_avail)"
)
E ValueError: Error: span setting not supported
E Use one of: str(self.span_avail)
adi/ltc2672.py:195: ValueError
Check warning on line 0 in test.test_ltc2672
github-actions / Test Results
test_ltc2672_channel_attr[powerdown-val1-0-adi.ltc2672] (test.test_ltc2672) failed
results.xml [took 0s]
Raw output
ValueError: Error: powerdown setting not supported
Use one of: str(self.powerdown_avail)
iio_uri = 'ip:10.1.1.152', classname = 'adi.ltc2672', channel = 0
attr = 'powerdown', val = ['powerdown']
@pytest.mark.iio_hardware(hardware)
@pytest.mark.parametrize("classname", [(classname)])
@pytest.mark.parametrize("channel", [0, 1, 2, 3, 4])
@pytest.mark.parametrize(
"attr, val",
[
(
"span",
[
"off_mode",
"3.125mA",
"6.25mA",
"12.5mA",
"25mA",
"50mA",
"100mA",
"200mA",
"MVREF",
"300mA",
],
),
("powerdown", ["powerdown"],),
],
)
def test_ltc2672_channel_attr(iio_uri, classname, channel, attr, val):
dev = adi.ltc2672(iio_uri)
dev_chan = dev.channel[channel]
for value in val:
> setattr(dev_chan, attr, value)
test/test_ltc2672.py:68:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <adi.ltc2672.ltc2672._channel object at 0x7f26c1ab3a00>
value = 'powerdown'
@powerdown.setter
def powerdown(self, value):
"""Set channel powerdown setting"""
if value in self.powerdown_avail:
self._set_iio_attr(self.name, "powerdown", True, value)
else:
> raise ValueError(
"Error: powerdown setting not supported \nUse one of: "
"str(self.powerdown_avail)"
)
E ValueError: Error: powerdown setting not supported
E Use one of: str(self.powerdown_avail)
adi/ltc2672.py:216: ValueError
Check warning on line 0 in test.test_ltc2672
github-actions / Test Results
test_ltc2672_channel_attr[powerdown-val1-1-adi.ltc2672] (test.test_ltc2672) failed
results.xml [took 0s]
Raw output
ValueError: Error: powerdown setting not supported
Use one of: str(self.powerdown_avail)
iio_uri = 'ip:10.1.1.152', classname = 'adi.ltc2672', channel = 1
attr = 'powerdown', val = ['powerdown']
@pytest.mark.iio_hardware(hardware)
@pytest.mark.parametrize("classname", [(classname)])
@pytest.mark.parametrize("channel", [0, 1, 2, 3, 4])
@pytest.mark.parametrize(
"attr, val",
[
(
"span",
[
"off_mode",
"3.125mA",
"6.25mA",
"12.5mA",
"25mA",
"50mA",
"100mA",
"200mA",
"MVREF",
"300mA",
],
),
("powerdown", ["powerdown"],),
],
)
def test_ltc2672_channel_attr(iio_uri, classname, channel, attr, val):
dev = adi.ltc2672(iio_uri)
dev_chan = dev.channel[channel]
for value in val:
> setattr(dev_chan, attr, value)
test/test_ltc2672.py:68:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <adi.ltc2672.ltc2672._channel object at 0x7f26c1b2da00>
value = 'powerdown'
@powerdown.setter
def powerdown(self, value):
"""Set channel powerdown setting"""
if value in self.powerdown_avail:
self._set_iio_attr(self.name, "powerdown", True, value)
else:
> raise ValueError(
"Error: powerdown setting not supported \nUse one of: "
"str(self.powerdown_avail)"
)
E ValueError: Error: powerdown setting not supported
E Use one of: str(self.powerdown_avail)
adi/ltc2672.py:216: ValueError
Check warning on line 0 in test.test_ltc2672
github-actions / Test Results
test_ltc2672_channel_attr[powerdown-val1-2-adi.ltc2672] (test.test_ltc2672) failed
results.xml [took 0s]
Raw output
ValueError: Error: powerdown setting not supported
Use one of: str(self.powerdown_avail)
iio_uri = 'ip:10.1.1.152', classname = 'adi.ltc2672', channel = 2
attr = 'powerdown', val = ['powerdown']
@pytest.mark.iio_hardware(hardware)
@pytest.mark.parametrize("classname", [(classname)])
@pytest.mark.parametrize("channel", [0, 1, 2, 3, 4])
@pytest.mark.parametrize(
"attr, val",
[
(
"span",
[
"off_mode",
"3.125mA",
"6.25mA",
"12.5mA",
"25mA",
"50mA",
"100mA",
"200mA",
"MVREF",
"300mA",
],
),
("powerdown", ["powerdown"],),
],
)
def test_ltc2672_channel_attr(iio_uri, classname, channel, attr, val):
dev = adi.ltc2672(iio_uri)
dev_chan = dev.channel[channel]
for value in val:
> setattr(dev_chan, attr, value)
test/test_ltc2672.py:68:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <adi.ltc2672.ltc2672._channel object at 0x7f26c1a92490>
value = 'powerdown'
@powerdown.setter
def powerdown(self, value):
"""Set channel powerdown setting"""
if value in self.powerdown_avail:
self._set_iio_attr(self.name, "powerdown", True, value)
else:
> raise ValueError(
"Error: powerdown setting not supported \nUse one of: "
"str(self.powerdown_avail)"
)
E ValueError: Error: powerdown setting not supported
E Use one of: str(self.powerdown_avail)
adi/ltc2672.py:216: ValueError
Check warning on line 0 in test.test_ltc2672
github-actions / Test Results
test_ltc2672_channel_attr[powerdown-val1-3-adi.ltc2672] (test.test_ltc2672) failed
results.xml [took 0s]
Raw output
ValueError: Error: powerdown setting not supported
Use one of: str(self.powerdown_avail)
iio_uri = 'ip:10.1.1.152', classname = 'adi.ltc2672', channel = 3
attr = 'powerdown', val = ['powerdown']
@pytest.mark.iio_hardware(hardware)
@pytest.mark.parametrize("classname", [(classname)])
@pytest.mark.parametrize("channel", [0, 1, 2, 3, 4])
@pytest.mark.parametrize(
"attr, val",
[
(
"span",
[
"off_mode",
"3.125mA",
"6.25mA",
"12.5mA",
"25mA",
"50mA",
"100mA",
"200mA",
"MVREF",
"300mA",
],
),
("powerdown", ["powerdown"],),
],
)
def test_ltc2672_channel_attr(iio_uri, classname, channel, attr, val):
dev = adi.ltc2672(iio_uri)
dev_chan = dev.channel[channel]
for value in val:
> setattr(dev_chan, attr, value)
test/test_ltc2672.py:68:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <adi.ltc2672.ltc2672._channel object at 0x7f26c1a924f0>
value = 'powerdown'
@powerdown.setter
def powerdown(self, value):
"""Set channel powerdown setting"""
if value in self.powerdown_avail:
self._set_iio_attr(self.name, "powerdown", True, value)
else:
> raise ValueError(
"Error: powerdown setting not supported \nUse one of: "
"str(self.powerdown_avail)"
)
E ValueError: Error: powerdown setting not supported
E Use one of: str(self.powerdown_avail)
adi/ltc2672.py:216: ValueError
Check warning on line 0 in test.test_ltc2672
github-actions / Test Results
test_ltc2672_channel_attr[powerdown-val1-4-adi.ltc2672] (test.test_ltc2672) failed
results.xml [took 0s]
Raw output
ValueError: Error: powerdown setting not supported
Use one of: str(self.powerdown_avail)
iio_uri = 'ip:10.1.1.152', classname = 'adi.ltc2672', channel = 4
attr = 'powerdown', val = ['powerdown']
@pytest.mark.iio_hardware(hardware)
@pytest.mark.parametrize("classname", [(classname)])
@pytest.mark.parametrize("channel", [0, 1, 2, 3, 4])
@pytest.mark.parametrize(
"attr, val",
[
(
"span",
[
"off_mode",
"3.125mA",
"6.25mA",
"12.5mA",
"25mA",
"50mA",
"100mA",
"200mA",
"MVREF",
"300mA",
],
),
("powerdown", ["powerdown"],),
],
)
def test_ltc2672_channel_attr(iio_uri, classname, channel, attr, val):
dev = adi.ltc2672(iio_uri)
dev_chan = dev.channel[channel]
for value in val:
> setattr(dev_chan, attr, value)
test/test_ltc2672.py:68:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <adi.ltc2672.ltc2672._channel object at 0x7f26c1a92550>
value = 'powerdown'
@powerdown.setter
def powerdown(self, value):
"""Set channel powerdown setting"""
if value in self.powerdown_avail:
self._set_iio_attr(self.name, "powerdown", True, value)
else:
> raise ValueError(
"Error: powerdown setting not supported \nUse one of: "
"str(self.powerdown_avail)"
)
E ValueError: Error: powerdown setting not supported
E Use one of: str(self.powerdown_avail)
adi/ltc2672.py:216: ValueError