fix(timepix): keep TDC2 disabled and acquire with TDC1 only
CI for superxas_bec / test (push) Successful in 2m22s

This commit is contained in:
wyzula_j committed 2026-10-22 15:36:09 +02:00
1 parent 531f8657c4
commit 0607f11fe1
2 files changed
+3 -4

No files matched your search

+2 -3
View File
@@ -721,13 +721,12 @@ class Timepix(PSIDeviceBase, TimePixControl):
"""Enable XES specific settings for the TimePix detector."""
enabled_value = 1 if enabled else 0
self.cam.tdc1_enable.set(enabled_value).wait(timeout=self._pv_timeout)
self.cam.tdc2_enable.set(enabled_value).wait(timeout=self._pv_timeout)
# TDC2 is not used; Accos also runs with TDC1 only
self.cam.tdc2_enable.set(0).wait(timeout=self._pv_timeout)
self.cam.raw_enable.set(enabled_value).wait(timeout=self._pv_timeout)
if enabled:
self.cam.tdc1_edge.set(TDCEdge.RISING).wait(timeout=self._pv_timeout)
self.cam.tdc1_output.set(TDCOuput.ALL_CHANNELS).wait(timeout=self._pv_timeout)
self.cam.tdc2_edge.set(TDCEdge.RISING).wait(timeout=self._pv_timeout)
self.cam.tdc2_output.set(TDCOuput.ALL_CHANNELS).wait(timeout=self._pv_timeout)
def wait_for_connection(
self, all_signals: bool = False, timeout: float | None = None, **kwargs
+1 -1
View File
@@ -267,7 +267,7 @@ def test_timepix_on_connected_configures_signals_and_registers_callback(timepix)
timepix.on_connected()
assert timepix.cam.tdc1_enable.get() == 1
assert timepix.cam.tdc2_enable.get() == 1
assert timepix.cam.tdc2_enable.get() == 0
assert timepix.cam.raw_enable.get() == 1
assert timepix.cam.tdc1_edge.get() == TDCEdge.RISING
assert timepix.cam.tdc1_output.get() == TDCOuput.ALL_CHANNELS