From c390e87536494a8a52b6773bfb37b02b5d4d64c8 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Thu, 13 Feb 2025 11:35:49 -0500 Subject: [PATCH] `.storage.cli`: collect gap-markup-aids into `tf2aids: dict` prior to pause for introspection --- piker/storage/cli.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/piker/storage/cli.py b/piker/storage/cli.py index 6890192d..1c8ff11b 100644 --- a/piker/storage/cli.py +++ b/piker/storage/cli.py @@ -386,6 +386,8 @@ def ldshm( open_annot_ctl() as actl, ): shm_df: pl.DataFrame | None = None + tf2aids: dict[float, dict] = {} + for ( shmfile, shm, @@ -526,16 +528,17 @@ def ldshm( new_df, step_gaps, ) - # last chance manual overwrites in REPL - await tractor.pause() + # await tractor.pause() assert aids + tf2aids[period_s] = aids else: # allow interaction even when no ts problems. - await tractor.pause() - # assert not diff + assert not diff + await tractor.pause() + log.info('Exiting TSP shm anal-izer!') if shm_df is None: log.error(