mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-05-14 06:25:36 +02:00
fix dac default names and test for dacs
This commit is contained in:
@@ -49,7 +49,7 @@ class NamedDacs:
|
||||
|
||||
#only get the dacnames if we have modules attached
|
||||
if detector.size() == 0:
|
||||
self._dacnames = [f"dac{i}" for i in range(18)]
|
||||
self._dacnames = [f"DAC{i}" for i in range(18)]
|
||||
else:
|
||||
self._dacnames = [n.replace(" ", "") for n in detector.getDacNames()]
|
||||
|
||||
|
||||
@@ -626,8 +626,8 @@ def test_dac(session_simulator, request):
|
||||
prev_dac_list = c.daclist
|
||||
|
||||
invalid_assignments = [
|
||||
(c.dacs, "vb_comp", 1200), # set random dac
|
||||
(c.dacs, "DAC18", 1200), # set dac 18
|
||||
(c.dacs, "vb_comp", "1200"), # set random dac
|
||||
(c.dacs, "DAC18", "1200"), # set dac 18
|
||||
(c.dacs, "DAC0", "-1"),
|
||||
(c.dacs, "DAC0", "4096")
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user