From 8e08fb7b237a711a30fd084252a0beca4915008a Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Sun, 8 May 2022 15:39:25 -0400 Subject: [PATCH] Add comment about un-reffed vars meant for use in shell --- piker/data/marketstore.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/piker/data/marketstore.py b/piker/data/marketstore.py index 5d930c3f..92d860da 100644 --- a/piker/data/marketstore.py +++ b/piker/data/marketstore.py @@ -494,7 +494,6 @@ async def tsdb_history_update( ): profiler(f'opened feed for {fqsn}') - to_append = feed.shm.array to_prepend = None @@ -511,6 +510,9 @@ async def tsdb_history_update( # hist diffing if tsdb_arrays: onesec = tsdb_arrays[1] + + # these aren't currently used but can be referenced from + # within the embedded ipython shell below. to_append = ohlcv[ohlcv['time'] > onesec['Epoch'][-1]] to_prepend = ohlcv[ohlcv['time'] < onesec['Epoch'][0]]