diff --git a/piker/fsp/_engine.py b/piker/fsp/_engine.py index 1b601c35..f9ba0c39 100644 --- a/piker/fsp/_engine.py +++ b/piker/fsp/_engine.py @@ -135,11 +135,17 @@ async def fsp_compute( output = history_output[key] if history is None: + + if output is None: + length = len(src.array) + else: + length = len(output) + # using the first output, determine # the length of the struct-array that # will be pushed to shm. history = np.zeros( - len(output), + length, dtype=dst.array.dtype )