Skip to content

Commit 33e7e53

Browse files
Remove unnecessary unpacking of value
1 parent d0322ed commit 33e7e53

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

causal_testing/testing/causal_test_outcome.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ def apply(self, res: CausalTestResult) -> bool:
5656
zip(res.ci_low(), res.ci_high(), res.test_value.value))
5757
elif res.test_value.type == "coefficient" or res.test_value.type == "ate":
5858
value = res.test_value.value if isinstance(res.ci_high(), Iterable) else [res.test_value.value]
59-
value = value[0] if isinstance(value[0], pd.Series) else value
6059
return (
6160
sum(
6261
not ((ci_low < 0 < ci_high) or abs(v) < self.atol)

0 commit comments

Comments
 (0)