Skip to content

Commit

Permalink
[LSC] Ignore incorrect type annotations related to jax.numpy APIs
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 568576099
  • Loading branch information
Jake VanderPlas authored and JAX-CFD authors committed Sep 26, 2023
1 parent 675fa2a commit 593bbf0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion jax_cfd/base/array_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ def orthogonalize(vector, others):
return q, r


def interp1d(
def interp1d( # pytype: disable=annotation-type-mismatch # jnp-type
x: Array,
y: Array,
axis: int = -1,
Expand Down
2 changes: 1 addition & 1 deletion jax_cfd/spectral/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def vorticity_to_velocity(
kx, ky = grid.rfft_mesh()
two_pi_i = 2 * jnp.pi * 1j
laplace = two_pi_i ** 2 * (abs(kx)**2 + abs(ky)**2)
laplace = laplace.at[0, 0].set(1)
laplace = laplace.at[0, 0].set(1) # pytype: disable=attribute-error # jnp-type

def ret(vorticity_hat):
psi_hat = -1 / laplace * vorticity_hat
Expand Down

0 comments on commit 593bbf0

Please sign in to comment.