Skip to content
Snippets Groups Projects
Commit 029538d5 authored by Jeremy M Fee's avatar Jeremy M Fee
Browse files

Update sqdist test to pass

parent 97a90d52
No related branches found
No related tags found
No related merge requests found
...@@ -146,6 +146,11 @@ def test_sqdistalgorithm_additive2(): ...@@ -146,6 +146,11 @@ def test_sqdistalgorithm_additive2():
t000to050 = np.arange(5001) t000to050 = np.arange(5001)
syn000to050 = 10.0 * np.sin(t000to050 * (2 * np.pi) / 100.0) syn000to050 = 10.0 * np.sin(t000to050 * (2 * np.pi) / 100.0)
# these are the old "defaults" computed when l0, b0, and s0 were None
l0 = np.nanmean(syn000to050[0:1440])
b0 = (np.nanmean(syn000to050[m:2 * m]) - np.nanmean(syn000to050[0:m])) / m
s0 = [syn000to050[i] - l0 for i in range(m)]
# run additive method on first 50 "days" # run additive method on first 50 "days"
(synHat000to050, sHat000to050, sigma000to050, (synHat000to050, sHat000to050, sigma000to050,
syn050, s050, l050, b050, sigma050) = sq.additive( syn050, s050, l050, b050, sigma050) = sq.additive(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment