Skip to content

Commit 9401840

Browse files
committed
More tests pass
1 parent 29043b5 commit 9401840

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

causal_testing/testing/causal_test_result.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def __str__(self):
4646
def push(s, inc=" "):
4747
return inc + str(s).replace("\n", "\n" + inc)
4848

49-
result_str = " " + str(self.test_value.value)
49+
result_str = str(self.test_value.value)
5050
if "\n" in result_str:
5151
result_str = "\n" + push(self.test_value.value)
5252
base_str = (

examples/poisson-line-process/example_poisson_process.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def test_poisson_intensity_num_shapes(save=False):
139139
base_test_case = BaseTestCase(treatment_variable=intensity, outcome_variable=num_shapes_unit)
140140
causal_test_case = CausalTestCase(
141141
base_test_case=base_test_case,
142-
expected_causal_effect=ExactValue(4, tolerance=0.5),
142+
expected_causal_effect=ExactValue(4, atol=0.5),
143143
treatment_value=treatment_value,
144144
control_value=control_value,
145145
estimate_type="risk_ratio",

0 commit comments

Comments
 (0)