From 9138f376f7e96ce1b2f65649fedb189fc837c9af Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Mon, 7 Mar 2022 11:16:12 -0500 Subject: [PATCH] Return all timeframe arrays if `timeframe` not passed as input --- piker/data/marketstore.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/piker/data/marketstore.py b/piker/data/marketstore.py index ff4a52eb..a9a8e286 100644 --- a/piker/data/marketstore.py +++ b/piker/data/marketstore.py @@ -222,7 +222,6 @@ class Storage: ''' High level storage api for both real-time and historical ingest. - ''' def __init__( self, @@ -284,10 +283,7 @@ class Storage: tf_in_1s.inverse[data_set.timeframe] ] = data_set.array - return ( - client, - arrays[fqsn][timeframe] if timeframe else arrays, - ) + return arrays[fqsn][timeframe] if timeframe else arrays @acm @@ -406,7 +402,8 @@ async def backfill_history_diff( len(to_append), dtype=mkts_dt, ) - # copy from shm array + # copy from shm array (yes it's this easy): + # https://numpy.org/doc/stable/user/basics.rec.html#assignment-from-other-structured-arrays mkts_array[:] = to_append[[ 'time', 'open',