Skip to content

Commit 26d6fe1

Browse files
committed
test: relaxed corr test
1 parent a1bfdc5 commit 26d6fe1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/hydrodiy/stat/tests/test_hystat_sutils.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,12 @@ def test_acf_idx(allclose):
8888
nval = 5000
8989
sig = 2
9090
rho1 = 0.7
91-
innov = np.random.normal(size=nval//2, \
91+
innov = np.random.normal(size=nval//2,
9292
scale=sig*math.sqrt(1-rho1**2))
9393
x1 = 10*sig + armodels.armodel_sim(rho1, innov)
9494

9595
rho2 = 0.1
96-
innov = np.random.normal(size=nval//2, \
96+
innov = np.random.normal(size=nval//2,
9797
scale=sig*math.sqrt(1-rho2**2))
9898
x2 = -10*sig + armodels.armodel_sim(rho2, innov)
9999

@@ -102,8 +102,8 @@ def test_acf_idx(allclose):
102102
acf1, cov = sutils.acf(data, idx=data>=0)
103103
acf2, cov = sutils.acf(data, idx=data<=0)
104104

105-
assert allclose([acf1[0], acf2[0]], [rho1, rho2], \
106-
atol=3e-2)
105+
assert allclose([acf1[0], acf2[0]], [rho1, rho2],
106+
atol=1e-1)
107107

108108

109109
def test_lhs_error():

0 commit comments

Comments
 (0)