Check more carefully for np.inexact type