We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f616091 commit 1e8ad89Copy full SHA for 1e8ad89
causal_testing/testing/causal_test_result.py
@@ -99,13 +99,18 @@ def to_dict(self, json=False):
99
def ci_low(self):
100
"""Return the lower bracket of the confidence intervals."""
101
if self.confidence_intervals:
102
- return self.confidence_intervals[0][0]
+ try:
103
+ return self.confidence_intervals[0][0]
104
+ except TypeError:
105
+ return self.confidence_intervals[0]
106
return None
107
108
def ci_high(self):
109
"""Return the higher bracket of the confidence intervals."""
- if self.confidence_intervals:
110
111
return self.confidence_intervals[1][0]
112
113
+ return self.confidence_intervals[1]
114
115
116
def ci_valid(self) -> bool:
0 commit comments