Skip to content

Commit

Permalink
labgrid/driver/power: depcrecate siglent backend
Browse files Browse the repository at this point in the history
See labgrid-project#1507 for more
details.

Signed-off-by: Bastian Krause <[email protected]>
  • Loading branch information
Bastian-Krause committed Sep 30, 2024
1 parent 6b54121 commit 8bb4e0f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions labgrid/driver/power/siglent.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
""" tested with Siglent SPD3303X-E, and should be compatible with all SPD3000X series modules"""

import warnings

import vxi11


def power_set(host, port, index, value):
warnings.warn(
"siglent power backend uses vxi11 module using deprecated xdrlib module, see https://github.com/labgrid-project/labgrid/issues/1507",
DeprecationWarning,
)

assert port is None
index = int(index)
assert 1 <= index <= 2
Expand All @@ -13,6 +20,11 @@ def power_set(host, port, index, value):


def power_get(host, port, index):
warnings.warn(
"siglent power backend uses vxi11 module using deprecated xdrlib module, see https://github.com/labgrid-project/labgrid/issues/1507",
DeprecationWarning,
)

assert port is None
index = int(index)
assert 1 <= index <= 2
Expand Down

0 comments on commit 8bb4e0f

Please sign in to comment.