From 22bd83943b58680edb4329a672e5a11f874d2607 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Mon, 4 Dec 2023 13:00:33 -0500 Subject: [PATCH] .storage: support `store anal --pdb` flag --- piker/storage/cli.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/piker/storage/cli.py b/piker/storage/cli.py index 972396c0..f0ae671f 100644 --- a/piker/storage/cli.py +++ b/piker/storage/cli.py @@ -140,6 +140,7 @@ def delete( def anal( fqme: str, period: int = 60, + pdb: bool = False, ) -> np.ndarray: ''' @@ -151,7 +152,7 @@ def anal( open_piker_runtime( # are you a bear or boi? 'tsdb_polars_anal', - debug_mode=True, + debug_mode=pdb, ), open_storage_client() as ( mod, @@ -159,7 +160,7 @@ def anal( ), ): syms: list[str] = await client.list_keys() - print(f'{len(syms)} FOUND for {mod.name}') + log.info(f'{len(syms)} FOUND for {mod.name}') ( history,