From eadee59f628ae8c8e3d40b854df4f50f11f13596 Mon Sep 17 00:00:00 2001 From: lemke_h Date: Sat, 19 Sep 2026 08:49:00 +0200 Subject: [PATCH] Daq: default live_parse_cache to True in this checkout Now that _launch_live_parse_cache points the cache writer at the writable res/ tree (previous commit), try it by default when starting an eco session from this personal checkout, rather than requiring bernina.daq.live_parse_cache = True to be set manually every session. Still a no-op against any escape-fel predating daq_cache_writer, and still live-toggleable. Not yet the production default. Co-Authored-By: Claude Sonnet 5 --- eco/acquisition/daq_client.py | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/eco/acquisition/daq_client.py b/eco/acquisition/daq_client.py index 08c1956..76695dd 100644 --- a/eco/acquisition/daq_client.py +++ b/eco/acquisition/daq_client.py @@ -183,7 +183,7 @@ class Daq(Assembly): use_running_status_server=True, speak_run_number=False, sound_alerts=False, - live_parse_cache=False, + live_parse_cache=True, live_parse_cache_python=None, live_parse_cache_poll_interval=None, live_parse_cache_idle_polls=None, @@ -319,14 +319,17 @@ class Daq(Assembly): # both _play_sound calls in check_checker_before_step (cowbell on # going unhappy, posthorn on resuming), live-toggleable. self.sound_alerts = sound_alerts - # Off by default: launches escape-fel's optional live parse-cache - # warmer (escape.swissfel.live_reduce --mode daq-cache) as a child - # of this process once per scan - see _launch_live_parse_cache's own - # docstring. Live-toggleable like the others above; also a no-op - # regardless of this flag until the installed escape-fel actually - # has the feature (checked at launch time, not here, since the - # installed escape-fel could change between Daq construction and a - # given scan). + # On by default (2026-09-19, this checkout only - not yet the + # production default): launches escape-fel's optional live + # parse-cache warmer (escape.swissfel.live_reduce --mode + # daq-cache) as a child of this process once per scan - see + # _launch_live_parse_cache's own docstring. Live-toggleable like + # the others above; also a no-op regardless of this flag until + # the installed escape-fel actually has the feature (checked at + # launch time, not here, since the installed escape-fel could + # change between Daq construction and a given scan) - so turning + # this on is safe even against an escape-fel checkout that + # predates the feature. self.live_parse_cache = live_parse_cache self.live_parse_cache_python = live_parse_cache_python self.live_parse_cache_poll_interval = live_parse_cache_poll_interval