Skip to content

Commit

Permalink
Obviate type ignore statments
Browse files Browse the repository at this point in the history
  • Loading branch information
mfschubert committed Nov 9, 2023
1 parent de58d33 commit f59ac88
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/invrs_gym/challenges/sorter/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,14 +239,12 @@ def response(

spec = dataclasses.replace(
self.spec,
thickness_cap=params[THICKNESS_CAP].array, # type: ignore[arg-type]
thickness_metasurface=(
params[THICKNESS_METASURFACE].array # type: ignore[arg-type]
),
thickness_spacer=params[THICKNESS_SPACER].array, # type: ignore[arg-type]
thickness_cap=jnp.asarray(params[THICKNESS_CAP].array),
thickness_metasurface=jnp.asarray(params[THICKNESS_METASURFACE].array),
thickness_spacer=jnp.asarray(params[THICKNESS_SPACER].array),
)
return simulate_sorter(
density_array=params[DENSITY_METASURFACE].array, # type: ignore[arg-type]
density_array=jnp.asarray(params[DENSITY_METASURFACE].array),
spec=spec,
wavelength=jnp.asarray(wavelength),
polar_angle=jnp.asarray(polar_angle),
Expand Down

0 comments on commit f59ac88

Please sign in to comment.