Skip to content

Commit

Permalink
fix(tests): apply surface factor
Browse files Browse the repository at this point in the history
  • Loading branch information
jeertmans committed Jan 16, 2025
1 parent 885ccc5 commit 84e9074
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion differt/tests/em/test_antenna.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,9 @@ def test_reference_power(self, frequency: float, key: PRNGKeyArray) -> None:
frequency=frequency,
moment=normalize(jax.random.normal(key_moment, (3,)))[0],
)
expected = jnp.linalg.norm(dipole.pointing_vector(xyz), axis=-1).max()
expected = (
jnp.linalg.norm(dipole.pointing_vector(xyz), axis=-1).max() * 4 * jnp.pi
)
chex.assert_trees_all_close(dipole.reference_power, expected, rtol=1e-2)

@pytest.mark.parametrize(
Expand Down

0 comments on commit 84e9074

Please sign in to comment.