Init history output with `np.zeros()`

dark_vlm
Tyler Goodlet 2022-01-28 08:45:28 -05:00
parent b112f24e7e
commit 67de8f24b9
1 changed files with 2 additions and 2 deletions

View File

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