Changin np.int32 to np.int16 for windows compatibility