Create source length zeroed arrays from yielded `None` fsp history
parent
4e96dd09e3
commit
f3289c1977
|
@ -135,11 +135,17 @@ async def fsp_compute(
|
||||||
output = history_output[key]
|
output = history_output[key]
|
||||||
|
|
||||||
if history is None:
|
if history is None:
|
||||||
|
|
||||||
|
if output is None:
|
||||||
|
length = len(src.array)
|
||||||
|
else:
|
||||||
|
length = len(output)
|
||||||
|
|
||||||
# using the first output, determine
|
# using the first output, determine
|
||||||
# the length of the struct-array that
|
# the length of the struct-array that
|
||||||
# will be pushed to shm.
|
# will be pushed to shm.
|
||||||
history = np.zeros(
|
history = np.zeros(
|
||||||
len(output),
|
length,
|
||||||
dtype=dst.array.dtype
|
dtype=dst.array.dtype
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue