fixes for python api
Build on RHEL9 docker image / build (push) Successful in 3m59s
Build on RHEL8 docker image / build (push) Successful in 5m13s

This commit is contained in:
2026-03-23 12:09:09 +01:00
parent c891b906d4
commit a5612f1161
6 changed files with 68 additions and 164 deletions
+2 -2
View File
@@ -405,8 +405,8 @@ def test_v_limit(session_simulator, request):
if det_type in ['ctb', 'xilinx_ctb']:
# save previous value
prev_val = d.getVoltageLimit()
from slsdet import dacIndex
prev_val = d.getDAC(dacIndex.V_LIMIT, True)
prev_dac_val = d.getDAC(dacIndex.DAC_0, False)
with pytest.raises(Exception):
@@ -426,8 +426,8 @@ def test_v_limit(session_simulator, request):
d.setDAC(dacIndex.DAC_0, 1501, True, [0])
# restore previous value
d.setVoltageLimit(prev_val)
for i in range(len(d)):
d.setDAC(dacIndex.V_LIMIT, prev_val[i], True, [i])
d.setDAC(dacIndex.DAC_0, prev_dac_val[i], False, [i])
else: