Skip to content

Commit 8d67b3b

Browse files
authored
Merge pull request #1509 from Bastian-Krause/bst/deprecate-siglent
labgrid/driver/power: deprecate siglent backend
2 parents 158d79f + 809b286 commit 8d67b3b

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

CHANGES.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ Due to the migration, 24.1 includes the following breaking changes:
4343
Other breaking changes include:
4444

4545
- Support for Python 3.8 was dropped.
46+
- The siglent power backend is deprecated because it uses the no longer
47+
maintained vxi11 module which again uses the deprecated (and in Python 3.13
48+
removed) xdrlib. See
49+
`issue #1507 <https://github.com/labgrid-project/labgrid/issues/1507>`_.
4650

4751
Known issues in 24.1
4852
~~~~~~~~~~~~~~~~~~~~

labgrid/driver/power/siglent.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
11
""" tested with Siglent SPD3303X-E, and should be compatible with all SPD3000X series modules"""
22

3+
import warnings
4+
35
import vxi11
46

57

68
def power_set(host, port, index, value):
9+
warnings.warn(
10+
"siglent power backend uses vxi11 module using deprecated xdrlib module, see https://github.com/labgrid-project/labgrid/issues/1507",
11+
DeprecationWarning,
12+
)
13+
714
assert port is None
815
index = int(index)
916
assert 1 <= index <= 2
@@ -13,6 +20,11 @@ def power_set(host, port, index, value):
1320

1421

1522
def power_get(host, port, index):
23+
warnings.warn(
24+
"siglent power backend uses vxi11 module using deprecated xdrlib module, see https://github.com/labgrid-project/labgrid/issues/1507",
25+
DeprecationWarning,
26+
)
27+
1628
assert port is None
1729
index = int(index)
1830
assert 1 <= index <= 2

0 commit comments

Comments
 (0)