From 8f23cc81109b4f0a15821a97365a33e1f04fd88f Mon Sep 17 00:00:00 2001 From: Sven Augustin Date: Fri, 6 Feb 2026 12:10:59 +0100 Subject: [PATCH] added switch to enable/disable bsread sender --- dap/accumulator.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dap/accumulator.py b/dap/accumulator.py index 8c911c1..1947b65 100644 --- a/dap/accumulator.py +++ b/dap/accumulator.py @@ -71,6 +71,10 @@ def accumulate(accumulator_addr, bsread_host, bsread_port, bsread_window): if not sender: continue + enable_bsread = results.get("enable_bsread", False) + if not enable_bsread: + continue + timestamp = tuple(results["timestamp"]) data = pack_bsread_data(results, detector, skip=ENTRIES_TO_SKIP) sorter.add(pulse_id, (timestamp, data))