Skip to content

Commit 47eb72c

Browse files
committed
Merge branch 'main' into some-devops
2 parents 7d01812 + 3bb81a7 commit 47eb72c

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

causalpy/pymc_experiments.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ def summary(self, round_to=None) -> None:
709709
print(f"{self.expt_type:=^80}")
710710
print(f"Formula: {self.formula}")
711711
print("\nResults:")
712-
print(round_num(self._causal_impact_summary_stat(), round_to))
712+
print(self._causal_impact_summary_stat(round_to))
713713
self.print_coefficients(round_to)
714714

715715

@@ -903,7 +903,7 @@ def plot(self, round_to=None):
903903
)
904904
return fig, ax
905905

906-
def summary(self, round_to: None) -> None:
906+
def summary(self, round_to=None) -> None:
907907
"""
908908
Print text output summarising the results
909909

causalpy/tests/test_pymc_experiments.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@ def test_did_summary():
1717
group_variable_name="group",
1818
model=cp.pymc_models.LinearRegression(sample_kwargs=sample_kwargs),
1919
)
20-
print(type(result._causal_impact_summary_stat()))
21-
assert isinstance(result._causal_impact_summary_stat(), str)
20+
round_to = None
21+
print(type(result._causal_impact_summary_stat(round_to)))
22+
print(result._causal_impact_summary_stat(round_to))
23+
assert isinstance(result._causal_impact_summary_stat(round_to), str)
2224

2325

2426
def test_regression_kink_gradient_change():

0 commit comments

Comments
 (0)