Deprecating boolean indices in `partition` and disable negative time unit factors `M8[-1s]`

Oct. 2, 2021
8:47 p.m.
Hi all, A brief note that the PR: https://github.com/numpy/numpy/pull/20000 deprecated the use of boolean arrays as indices in argpartition (aligning its behaviour with normal indexing). Further: https://github.com/numpy/numpy/pull/19731 silently turns negative time factor indices into errors. Previously, it was apparently possible to create times with e.g. `- 1000s` as time unit: `np.dtype("M8[-1000s]")`. We assumed that those negative time units should never be allowed and nobody would use them on purpose. If anyone has concerns about either (or knows/thinks this may create a problem somewhere) please let us know so we can revert/reconsider the change! Cheers, Sebastian
1258
Age (days ago)
1258
Last active (days ago)
0 comments
1 participants
participants (1)
-
Sebastian Berg