`.storage.cli`: collect gap-markup-aids into `tf2aids: dict` prior to pause for introspection

tsp_gaps
Tyler Goodlet 2025-02-13 11:35:49 -05:00
parent 5e4a6d61c7
commit c390e87536
1 changed files with 7 additions and 4 deletions

View File

@ -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(