Skip to content

Commit 8f9499d

Browse files
Extract bool from series
1 parent fd7f79d commit 8f9499d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

causal_testing/testing/causal_test_outcome.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def __init__(self, atol: float = 1e-10, ctol: float = 0.05):
5353

5454
def apply(self, res: CausalTestResult) -> bool:
5555
if res.test_value.type == "ate":
56-
return (res.ci_low() < 0 < res.ci_high()) or (abs(res.test_value.value) < self.atol)
56+
return (res.ci_low() < 0 < res.ci_high()) or (abs(res.test_value.value) < self.atol)[0]
5757
if res.test_value.type == "coefficient":
5858
ci_low = res.ci_low() if isinstance(res.ci_low(), Iterable) else [res.ci_low()]
5959
ci_high = res.ci_high() if isinstance(res.ci_high(), Iterable) else [res.ci_high()]

0 commit comments

Comments
 (0)