Numpy expects a homogeneous array of elements with fixed dimensions. By passing in the object type directly, allowing for elements of different sizes, the error from #1 is fixed.
You'll loose all the benefits of Numpy doing this, but this is the most minimal change fixing #1, and the array is only an intermediary data structure anyways.
Description
Numpy expects a homogeneous array of elements with fixed dimensions. By passing in the
object
type directly, allowing for elements of different sizes, the error from #1 is fixed.You'll loose all the benefits of Numpy doing this, but this is the most minimal change fixing #1, and the array is only an intermediary data structure anyways.