Skip to content

Commit

Permalink
Fixed some matplotlib issues
Browse files Browse the repository at this point in the history
  • Loading branch information
bbfrederick committed Nov 2, 2023
1 parent bbd319c commit 1c876b4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rapidtide/tests/test_miscmath.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
from rapidtide.tests.utils import mse


def test_math(debug=True, displayplots=False):
def test_math(debug=False, displayplots=False):
# test math functions
EPSILON = 1e-5
numpoints = 500
Expand Down Expand Up @@ -69,7 +69,7 @@ def test_math(debug=True, displayplots=False):
basefunc = np.sin(hifreq * 2.0 * np.pi * xaxis)
modfunc = 0.5 + 0.1 * np.sin(lowfreq * 2.0 * np.pi * xaxis)
theenvelope = tide_math.envdetect(1.0, basefunc * modfunc, cutoff=0.1, padlen=100)
if debug:
if displayplots:
matplotlib.use("TkAgg")
offset = 0.0
plt.plot(xaxis, basefunc + offset)
Expand All @@ -81,7 +81,7 @@ def test_math(debug=True, displayplots=False):
print(mse(theenvelope, modfunc))
assert mse(theenvelope, modfunc) < 0.04

# thephase test
# phasemod test
# thephase = tide_math.phasemod(phase, centric=True)

# trendfilt test
Expand Down

0 comments on commit 1c876b4

Please sign in to comment.