Fixes an IndexError arising in active_sample.py in Numpy>=1.23, caused by Numpy issue #21840.
a. In Numpy>=1.23, np.delete interprets length-1 boolean arrays as integer indices, instead of masks. To fix, active_sample.py now casts the relevant boolean masks to indices explicitly.
IndexError
arising inactive_sample.py
in Numpy>=1.23, caused by Numpy issue #21840. a. In Numpy>=1.23,np.delete
interprets length-1 boolean arrays as integer indices, instead of masks. To fix,active_sample.py
now casts the relevant boolean masks to indices explicitly.