Skip to content

Commit 04aa446

Browse files
committed
Updated functional regression test now that pairwise probing throws out less data.
1 parent 14eaefa commit 04aa446

1 file changed

Lines changed: 15 additions & 15 deletions

File tree

tests/functional/test_wfsc_flc.py

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
def test_wfsc_flc():
1313

1414
mp = deepcopy(CONFIG.mp)
15-
mp.flagPlot = False
15+
mp.flagPlot = True #False
1616
LOCAL_PATH = os.path.dirname(os.path.abspath(__file__))
1717
mp.path.falco = os.path.dirname(os.path.dirname(LOCAL_PATH))
1818

@@ -23,32 +23,32 @@ def test_wfsc_flc():
2323
out = falco.setup.flesh_out_workspace(mp)
2424
falco.wfsc.loop(mp, out)
2525

26-
# print(out.IrawCorrHist[-1])
27-
# print(out.IestScoreHist[-1])
28-
# print(out.IincoCorrHist[-1])
29-
# print(out.complexProjection[1, 0])
30-
# print(out.dm1.Spv[-1])
31-
# print(out.thput[-1])
32-
# print(out.log10regHist)
26+
print(out.IrawCorrHist[-1])
27+
print(out.IestScoreHist[-1])
28+
print(out.IincoCorrHist[-1])
29+
print(out.complexProjection[1, 0])
30+
print(out.dm1.Spv[-1])
31+
print(out.thput[-1])
32+
print(out.log10regHist)
3333

3434
# Tests:
3535
Iend = out.IrawCorrHist[-1] # 1.1157e-5 in matlab, 1.073e-05 in python
36-
assert isclose(Iend, 1.073e-5, abs_tol=1e-6)
36+
assert isclose(Iend, 8.12e-6, abs_tol=1e-6)
3737

3838
Iest = out.IestScoreHist[-1] # 8.15e-06 in matlab, 8.123e-6 in python
39-
assert isclose(Iest, 8.123e-6, abs_tol=3e-7)
39+
assert isclose(Iest, 1.53e-5, abs_tol=3e-7)
4040

41-
Iinco = out.IincoCorrHist[-1] # 1.28e-5 in matlab, 1.165e-5 in python
42-
assert isclose(Iinco, 1.165e-5, abs_tol=3e-7)
41+
# Iinco = out.IincoCorrHist[-1] # 1.28e-5 in matlab, 1.165e-5 in python
42+
# assert isclose(Iinco, 1.165e-5, abs_tol=3e-7)
4343

4444
complexProj = out.complexProjection[1, 0] # 0.74 in matlab, 0.82 in python
45-
assert isclose(complexProj, 0.82, abs_tol=2e-2)
45+
assert isclose(complexProj, 0.88, abs_tol=0.02)
4646

4747
dm1pv = out.dm1.Spv[-1] # 5.6956e-08 in matlab, 5.75e-8 in python
48-
assert isclose(dm1pv, 5.75e-8, abs_tol=1e-9)
48+
assert isclose(dm1pv, 6.09e-8, abs_tol=1e-9)
4949

5050
thput = out.thput[-1] # 0.1493 in matlab, 0.1492 in python
51-
assert isclose(thput, 0.1492, abs_tol=1e-3)
51+
assert isclose(thput, 0.1486, abs_tol=1e-3)
5252

5353
assert np.allclose(out.log10regHist, np.array([-2, -2, -2]), rtol=1e-2)
5454

0 commit comments

Comments
 (0)