Skip to content

Commit 7e982c0

Browse files
committed
remove some commented out lines + remove parens
1 parent 732707f commit 7e982c0

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

causalpy/pymc_experiments.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ def plot(self, counterfactual_label="Counterfactual", **kwargs):
328328
fontsize=LEGEND_FONT_SIZE,
329329
)
330330

331-
return (fig, ax)
331+
return fig, ax
332332

333333
def summary(self) -> None:
334334
"""
@@ -424,7 +424,7 @@ def plot(self, plot_predictors=False, **kwargs):
424424
ax[0].plot(
425425
self.datapost.index, self.post_X, "-", c=[0.8, 0.8, 0.8], zorder=1
426426
)
427-
return (fig, ax)
427+
return fig, ax
428428

429429

430430
class DifferenceInDifferences(ExperimentalDesign):
@@ -903,7 +903,7 @@ def plot(self):
903903
self.data,
904904
x=self.running_variable_name,
905905
y=self.outcome_variable_name,
906-
c="k", # hue="treated",
906+
c="k",
907907
ax=ax,
908908
)
909909

@@ -939,7 +939,7 @@ def plot(self):
939939
labels=labels,
940940
fontsize=LEGEND_FONT_SIZE,
941941
)
942-
return (fig, ax)
942+
return fig, ax
943943

944944
def summary(self) -> None:
945945
"""
@@ -1038,7 +1038,6 @@ def __init__(
10381038
self.x_pred = pd.DataFrame(
10391039
{self.running_variable_name: xi, "treated": self._is_treated(xi)}
10401040
)
1041-
# self.x_pred = pd.DataFrame({self.running_variable_name: xi})
10421041
(new_x,) = build_design_matrices([self._x_design_info], self.x_pred)
10431042
self.pred = self.model.predict(X=np.asarray(new_x))
10441043

@@ -1133,7 +1132,7 @@ def plot(self):
11331132
labels=labels,
11341133
fontsize=LEGEND_FONT_SIZE,
11351134
)
1136-
return (fig, ax)
1135+
return fig, ax
11371136

11381137
def summary(self) -> None:
11391138
"""

0 commit comments

Comments
 (0)