@@ -593,10 +593,7 @@ def test_one_group_ramp_suppressed_one_integration(algo):
593593 check = np .array ([[np .nan , np .nan , 1.0000001 ]])
594594 np .testing .assert_allclose (sdata , check , tol )
595595
596- if algo == DEFAULT_OLS :
597- check = np .array ([[DNU | SAT , DNU | SAT , GOOD ]])
598- else : # LIKELY
599- check = np .array ([[DNU | SAT , SAT , GOOD ]])
596+ check = np .array ([[DNU | SAT , DNU | SAT , GOOD ]])
600597 np .testing .assert_equal (sdq , check )
601598
602599 if algo == DEFAULT_OLS :
@@ -623,10 +620,7 @@ def test_one_group_ramp_suppressed_one_integration(algo):
623620 check = np .array ([[[np .nan , np .nan , 1.0000001 ]]])
624621 np .testing .assert_allclose (cdata , check , tol )
625622
626- if algo == DEFAULT_OLS :
627- check = np .array ([[[DNU | SAT , DNU | SAT , GOOD ]]])
628- else : # LIKELY
629- check = np .array ([[[DNU | SAT , SAT , GOOD ]]])
623+ check = np .array ([[[DNU | SAT , DNU | SAT , GOOD ]]])
630624 np .testing .assert_equal (cdq , check )
631625
632626 if algo == DEFAULT_OLS :
@@ -761,10 +755,7 @@ def test_one_group_ramp_suppressed_two_integrations(algo):
761755 check = np .array ([[[np .nan , np .nan , 1.0000001 ]], [[1.0000001 , 1.0000001 , 1.0000001 ]]])
762756 np .testing .assert_allclose (cdata , check , tol )
763757
764- if algo == DEFAULT_OLS :
765- check = np .array ([[[DNU | SAT , DNU | SAT , GOOD ]], [[GOOD , GOOD , GOOD ]]])
766- else : # LIKELY
767- check = np .array ([[[DNU | SAT , SAT , GOOD ]], [[GOOD , GOOD , GOOD ]]])
758+ check = np .array ([[[DNU | SAT , DNU | SAT , GOOD ]], [[GOOD , GOOD , GOOD ]]])
768759 np .testing .assert_equal (cdq , check )
769760
770761 if algo == DEFAULT_OLS :
@@ -1446,10 +1437,7 @@ def test_new_saturation(algo):
14461437 check = np .array ([[2.794573 , 2.793989 , np .nan ]])
14471438 np .testing .assert_allclose (sdata , check , tol , tol )
14481439
1449- if algo == DEFAULT_OLS :
1450- check = np .array ([[JUMP | SAT , JUMP | SAT , DNU | SAT ]])
1451- else : # LIKELY
1452- check = np .array ([[JUMP | SAT , JUMP | DNU | SAT , DNU | SAT ]])
1440+ check = np .array ([[JUMP | SAT , JUMP | SAT , DNU | SAT ]])
14531441 np .testing .assert_equal (sdq , check )
14541442
14551443 if algo == DEFAULT_OLS :
@@ -1566,10 +1554,7 @@ def test_invalid_integrations(algo):
15661554 check = np .array ([[5576.588 ]])
15671555 np .testing .assert_allclose (sdata , check , tol , tol )
15681556
1569- if algo == DEFAULT_OLS :
1570- check = np .array ([[JUMP | SAT ]])
1571- else : # LIKELY
1572- check = np .array ([[JUMP | SAT | DNU ]])
1557+ check = np .array ([[JUMP | SAT ]])
15731558 np .testing .assert_equal (sdq , check )
15741559
15751560 if algo == DEFAULT_OLS :
@@ -1599,14 +1584,9 @@ def test_invalid_integrations(algo):
15991584 check = np .array ([np .nan , np .nan , np .nan , 5576.588 , np .nan , np .nan , np .nan , np .nan ], dtype = np .float32 )
16001585 np .testing .assert_allclose (cdata [:, 0 , 0 ], check , tol , tol )
16011586
1602- if algo == DEFAULT_OLS :
1603- check = np .array (
1604- [JUMP , JUMP | DNU , JUMP | DNU , GOOD , JUMP | DNU , JUMP | DNU , JUMP | DNU , JUMP | DNU ], dtype = np .uint8
1605- )
1606- else : # LIKELY
1607- check = np .array (
1608- [JUMP , JUMP , JUMP , GOOD , JUMP , JUMP , JUMP , JUMP ], dtype = np .uint8
1609- )
1587+ check = np .array (
1588+ [JUMP , JUMP | DNU , JUMP | DNU , GOOD , JUMP | DNU , JUMP | DNU , JUMP | DNU , JUMP | DNU ], dtype = np .uint8
1589+ )
16101590 check |= SAT
16111591 np .testing .assert_equal (cdq [:, 0 , 0 ], check )
16121592
0 commit comments