AllenInstitute / npc_sync

Repackaging of AllenSDK.SyncDataset with extra functionality, compatible with data in the cloud.
MIT License
0 stars 0 forks source link

`ediff1d` requires matching dtypes #1

Closed jsiegle closed 3 hours ago

jsiegle commented 3 hours ago

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:

np.ediff1d(bit_array, to_begin=np.uint8(0))
bjhardcastle commented 3 hours ago

Thanks a lot for this!