Skip to content

Commit 1ba0333

Browse files
committed
simplify the summary method
1 parent 7e982c0 commit 1ba0333

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

causalpy/pymc_experiments.py

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1139,12 +1139,17 @@ def summary(self) -> None:
11391139
Print text output summarising the results
11401140
"""
11411141

1142-
print(f"{self.expt_type:=^80}")
1143-
print(f"Formula: {self.formula}")
1144-
print(f"Running variable: {self.running_variable_name}")
1145-
print(f"Kink point on running variable: {self.kink_point}")
1146-
print("\nResults:")
1147-
print(f"Change in slope at kink point = {self.gradient_change.mean():.2f}")
1142+
print(
1143+
f"""
1144+
{self.expt_type:=^80}
1145+
Formula: {self.formula}
1146+
Running variable: {self.running_variable_name}
1147+
Kink point on running variable: {self.kink_point}
1148+
1149+
Results:
1150+
Change in slope at kink point = {self.gradient_change.mean():.2f}
1151+
"""
1152+
)
11481153
self.print_coefficients()
11491154

11501155

0 commit comments

Comments
 (0)