BF: replaces isinf with npy_isinf