Skip to content

Commit

Permalink
remove line average test
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-dudt committed Aug 22, 2024
1 parent 3434eab commit ec972c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
2 changes: 1 addition & 1 deletion desc/compute/_profiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ def _Te_rr(params, transforms, profiles, data, **kwargs):

@register_compute_fun(
name="<ne>_vol",
label="\\lange n_e \\rangle_{vol}",
label="\\langle n_e \\rangle_{vol}",
units="m^{-3}",
units_long="1 / cubic meters",
description="Volume average electron density",
Expand Down
15 changes: 1 addition & 14 deletions tests/test_profiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -508,19 +508,6 @@ def test_kinetic_pressure(self):
np.testing.assert_allclose(data1["p"], data2["p"])
np.testing.assert_allclose(data1["p_r"], data2["p_r"])

@pytest.mark.unit
def test_line_average(self):
"""Test that line-averaged profiles are correct."""
ne0 = 3e19
Te0 = 2e3
ne = PowerSeriesProfile(2 * ne0 * np.array([1, -1]), modes=[0, 1])
Te = PowerSeriesProfile(2 * Te0 * np.array([1, -1]), modes=[0, 1])

with pytest.raises(UserWarning):
eq = Equilibrium(electron_density=ne, electron_temperature=Te)
data = eq.compute("<ne>_rho")
np.testing.assert_allclose(data["<ne>_rho"], ne0)

@pytest.mark.unit
def test_hermite_spline_solve(self):
"""Test that spline with double number of parameters is optimized."""
Expand All @@ -530,4 +517,4 @@ def test_hermite_spline_solve(self):
eq.pressure(rho), eq.pressure(rho, dr=1), rho
)
eq.solve()
assert eq.is_nested()
assert eq.is_nested()

0 comments on commit ec972c4

Please sign in to comment.