do not use the 'right=True' option in numpy.digitize