Init history output with `np.zeros()`
parent
b112f24e7e
commit
67de8f24b9
|
@ -107,8 +107,8 @@ async def fsp_compute(
|
||||||
profiler(f'{func_name} generated history')
|
profiler(f'{func_name} generated history')
|
||||||
|
|
||||||
# build struct array with an 'index' field to push as history
|
# build struct array with an 'index' field to push as history
|
||||||
history = np.array(
|
history = np.zeros(
|
||||||
np.arange(len(history_output)),
|
len(history_output),
|
||||||
dtype=dst.array.dtype
|
dtype=dst.array.dtype
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue