[compute_overlap_e] remove omega arg (unused)

This commit is contained in:
Forgejo Actions 2026-04-22 21:08:12 -07:00
commit 35fc67faa3
4 changed files with 1 additions and 10 deletions

View file

@ -100,7 +100,7 @@ def get_waveguide_mode(
# compute_overlap_e() returns the normalized upstream overlap window used to # compute_overlap_e() returns the normalized upstream overlap window used to
# project another field onto this same guided mode. # project another field onto this same guided mode.
e_overlap = waveguide_3d.compute_overlap_e(E=wg_results['E'], wavenumber=wg_results['wavenumber'], **wg_args, omega=omega) e_overlap = waveguide_3d.compute_overlap_e(E=wg_results['E'], wavenumber=wg_results['wavenumber'], **wg_args)
return J, e_overlap return J, e_overlap

View file

@ -196,7 +196,6 @@ def compute_overlap_e(
axis: int, axis: int,
polarity: int, polarity: int,
slices: Sequence[slice], slices: Sequence[slice],
_omega: float,
) -> cfdfield_t: ) -> cfdfield_t:
r""" r"""
Build an overlap field for projecting another 3D electric field onto a mode. Build an overlap field for projecting another 3D electric field onto a mode.

View file

@ -380,7 +380,6 @@ def _run_straight_waveguide_case(variant: str) -> WaveguideCalibrationResult:
axis=0, axis=0,
polarity=1, polarity=1,
slices=MONITOR_SLICES, slices=MONITOR_SLICES,
omega=OMEGA, # type: ignore[call-arg]
) )
update_e, update_h = fdtd.updates_with_cpml(cpml_params=_build_cpml_params(), dt=DT, dxes=base_dxes, epsilon=epsilon) update_e, update_h = fdtd.updates_with_cpml(cpml_params=_build_cpml_params(), dt=DT, dxes=base_dxes, epsilon=epsilon)
@ -488,7 +487,6 @@ def _run_width_step_scattering_case() -> WaveguideScatteringResult:
axis=0, axis=0,
polarity=-1, polarity=-1,
slices=SCATTERING_REFLECT_SLICES, slices=SCATTERING_REFLECT_SLICES,
omega=OMEGA, # type: ignore[call-arg]
) )
transmitted_mode = waveguide_3d.solve_mode( transmitted_mode = waveguide_3d.solve_mode(
0, 0,
@ -506,7 +504,6 @@ def _run_width_step_scattering_case() -> WaveguideScatteringResult:
axis=0, axis=0,
polarity=1, polarity=1,
slices=SCATTERING_TRANSMIT_SLICES, slices=SCATTERING_TRANSMIT_SLICES,
omega=OMEGA, # type: ignore[call-arg]
) )
update_e, update_h = fdtd.updates_with_cpml(cpml_params=_build_cpml_params(), dt=DT, dxes=base_dxes, epsilon=epsilon) update_e, update_h = fdtd.updates_with_cpml(cpml_params=_build_cpml_params(), dt=DT, dxes=base_dxes, epsilon=epsilon)
@ -621,7 +618,6 @@ def _run_pulsed_straight_waveguide_case() -> PulsedWaveguideCalibrationResult:
axis=0, axis=0,
polarity=1, polarity=1,
slices=MONITOR_SLICES, slices=MONITOR_SLICES,
omega=OMEGA, # type: ignore[call-arg]
) )
update_e, update_h = fdtd.updates_with_cpml(cpml_params=_build_cpml_params(), dt=DT, dxes=base_dxes, epsilon=epsilon, dtype=complex) update_e, update_h = fdtd.updates_with_cpml(cpml_params=_build_cpml_params(), dt=DT, dxes=base_dxes, epsilon=epsilon, dtype=complex)

View file

@ -100,7 +100,6 @@ def test_waveguide_3d_compute_overlap_e_uses_adjacent_window(
axis=0, axis=0,
polarity=polarity, polarity=polarity,
slices=slices, slices=slices,
omega=OMEGA, # type: ignore[call-arg]
) )
nonzero = numpy.argwhere(numpy.abs(overlap) > 0) nonzero = numpy.argwhere(numpy.abs(overlap) > 0)
@ -130,7 +129,6 @@ def test_waveguide_3d_compute_overlap_e_warns_when_window_is_clipped(
axis=0, axis=0,
polarity=polarity, polarity=polarity,
slices=slices, slices=slices,
omega=OMEGA, # type: ignore[call-arg]
) )
nonzero = numpy.argwhere(numpy.abs(overlap) > 0) nonzero = numpy.argwhere(numpy.abs(overlap) > 0)
@ -158,7 +156,6 @@ def test_waveguide_3d_compute_overlap_e_rejects_empty_overlap_window(
axis=0, axis=0,
polarity=polarity, polarity=polarity,
slices=slices, slices=slices,
omega=OMEGA, # type: ignore[call-arg]
) )
@ -173,7 +170,6 @@ def test_waveguide_3d_compute_overlap_e_rejects_zero_support_window() -> None:
axis=0, axis=0,
polarity=1, polarity=1,
slices=slices, slices=slices,
omega=OMEGA, # type: ignore[call-arg]
) )