Skip to content

Commit

Permalink
range for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Takaya Uchida authored and Takaya Uchida committed Aug 28, 2023
1 parent 929504a commit 8e4aa10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xwavelet/tests/test_wavelet.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def test_isotropic_ps_slope(chunk, N=256, dL=1.0, amp=1e0, slope=-3.0, xo=50):
iso_ps = (np.abs(Wtheta) ** 2).mean(["d0", "angle"]) * (Wtheta.scale) ** -1
npt.assert_almost_equal(np.ma.masked_invalid(iso_ps).mask.sum(), 0.0)
y_fit, a, b = xrft.fit_loglog(
(iso_ps.scale.values[2:-2]) ** -1, iso_ps.values[2:-2]
(iso_ps.scale.values[5:-1]) ** -1, iso_ps.values[5:-1]
)
npt.assert_allclose(a, slope, atol=0.3)

Expand All @@ -174,7 +174,7 @@ def test_isotropic_ps_slope(chunk, N=256, dL=1.0, amp=1e0, slope=-3.0, xo=50):
)
npt.assert_almost_equal(np.ma.masked_invalid(iso_ps).mask.sum(), 0.0)
y_fit, a, b = xrft.fit_loglog(
(iso_ps.scale.values[2:-2]) ** -1, iso_ps.values[2:-2]
(iso_ps.scale.values[5:-1]) ** -1, iso_ps.values[5:-1]
)
npt.assert_allclose(a, slope, atol=0.3)

Expand Down

0 comments on commit 8e4aa10

Please sign in to comment.