Ah, so valdation.py:check_arrays is calling asarray which makes the ints into strings. This happens before the np.unique call is made.