...
balu/DataSelectionAndGeneration/Bds_nostratify.py", line 35, in Bds_nostratify
X1 = Xr[0:r, :]
TypeError: slice indices must be integers or None or have an __index__ method
A possible solution is to change r = np.floor(s * N) in source line 33, for either:
A possible solution is to change
r = np.floor(s * N)
in source line 33, for either:r = np.floor(s * N).astype(int)
r = np.uint8(np.floor(s * N))