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 <noreply@anthropic.com>
This commit is contained in:
lemke_handClaude Sonnet 5 committed 2026-09-19 08:49:00 +02:00
1 parent 7d6dcc7157
commit eadee59f62
1 file changed
+12 -9
+12 -9
View File
@@ -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