From f4c9e20f0d80dae487bc3b204f3deec0433419f0 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Tue, 1 Jun 2021 10:38:11 -0400 Subject: [PATCH] Avoid `numpy` type usage on the wire --- piker/data/feed.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/piker/data/feed.py b/piker/data/feed.py index a0e2478b..0f856627 100644 --- a/piker/data/feed.py +++ b/piker/data/feed.py @@ -217,8 +217,8 @@ async def allocate_persistent_feed( times = shm.array['time'] delay_s = times[-1] - times[times != times[-1]][-1] - # pass OHLC sample rate in seconds - init_msg[symbol]['sample_rate'] = delay_s + # pass OHLC sample rate in seconds (be sure to use python int type) + init_msg[symbol]['sample_rate'] = int(delay_s) # yield back control to starting nursery task_status.started((init_msg, first_quote))