Remove np.ogrid to fix the error