Create source length zeroed arrays from yielded `None` fsp history

windows_fixes_yo
Tyler Goodlet 2022-02-02 08:06:41 -05:00
parent 4e96dd09e3
commit f3289c1977
1 changed files with 7 additions and 1 deletions

View File

@ -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
)