Closed jsiegle closed 3 hours ago
Any functions that use np.ediff1d are failing with numpy v2, which is much stricter about data types.
np.ediff1d
It can be fixed by specifying the dtype of the to_begin input argument:
to_begin
np.ediff1d(bit_array, to_begin=np.uint8(0))
Thanks a lot for this!
Any functions that use
np.ediff1d
are failing with numpy v2, which is much stricter about data types.It can be fixed by specifying the dtype of the
to_begin
input argument: