Skip to content

Commit

Permalink
fixing more tests 2
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulgaur104 committed Sep 28, 2024
1 parent 392c9e9 commit 2ace1f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions desc/compute/_profiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
expensive computations.
"""

from quadax import simpson
from quadax import cumulative_simpson
from scipy.constants import elementary_charge, mu_0

from desc.backend import cond, jnp
Expand Down Expand Up @@ -143,7 +143,7 @@ def _chi_r(params, transforms, profiles, data, **kwargs):
resolution_requirement="r",
)
def _chi(params, transforms, profiles, data, **kwargs):
chi = simpson(
chi = cumulative_simpson(

Check warning on line 146 in desc/compute/_profiles.py

View check run for this annotation

Codecov / codecov/patch

desc/compute/_profiles.py#L146

Added line #L146 was not covered by tests
y=transforms["grid"].compress(data["chi_r"]),
x=transforms["grid"].compress(data["rho"]),
initial=0,
Expand Down

0 comments on commit 2ace1f6

Please sign in to comment.