From 67de8f24b98e1b3ccbb2ff3f1c74e0413ef766c8 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Fri, 28 Jan 2022 08:45:28 -0500 Subject: [PATCH] Init history output with `np.zeros()` --- piker/fsp/_engine.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/piker/fsp/_engine.py b/piker/fsp/_engine.py index 53c872e8..0a318a3e 100644 --- a/piker/fsp/_engine.py +++ b/piker/fsp/_engine.py @@ -107,8 +107,8 @@ async def fsp_compute( profiler(f'{func_name} generated history') # build struct array with an 'index' field to push as history - history = np.array( - np.arange(len(history_output)), + history = np.zeros( + len(history_output), dtype=dst.array.dtype )