Boolean indexing deprecated?

juliohm
Sat, 25 Nov 2017 02:22:18 +0000
General Usage

From the NEWS.md file:

Using Bool values directly as indices is now deprecated and will be an error in the future. Convert them to Int before indexing if you intend to access index 1 for true and 0 for false.

Does that mean that we won’t be able to mask arrays with boolean masks anymore? That sounds terrible, can someone please clarify this?

4 posts - 2 participants