File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ class Positive(SomeEffect):
94
94
def apply (self , res : CausalTestResult ) -> bool :
95
95
if res .ci_valid () and not super ().apply (res ):
96
96
return False
97
- if len (res .test_value .value > 0 ) :
97
+ if len (res .test_value .value ) > 1 :
98
98
raise ValueError ("Positive Effects are currently only supported on single float datatypes" )
99
99
if res .test_value .type in {"ate" , "coefficient" }:
100
100
return bool (res .test_value .value [0 ] > 0 )
@@ -109,7 +109,7 @@ class Negative(SomeEffect):
109
109
def apply (self , res : CausalTestResult ) -> bool :
110
110
if res .ci_valid () and not super ().apply (res ):
111
111
return False
112
- if len (res .test_value .value > 0 ) :
112
+ if len (res .test_value .value ) > 1 :
113
113
raise ValueError ("Negative Effects are currently only supported on single float datatypes" )
114
114
if res .test_value .type in {"ate" , "coefficient" }:
115
115
return bool (res .test_value .value [0 ] < 0 )
You can’t perform that action at this time.
0 commit comments