Skip to content

Commit cf2a6f7

Browse files
committed
resolving conflicts
1 parent 9bbc4cb commit cf2a6f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

causalpy/experiments/interrupted_time_series.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,14 +148,14 @@ def plot_treated_counterfactual(
148148
# Plot predicted values under treatment (with HDI)
149149
h_line, h_patch = plot_xY(
150150
datapre.index,
151-
pre_pred["posterior_predictive"].mu_ts,
151+
pre_pred["posterior_predictive"].mu_ts.isel(treated_units=0),
152152
ax=ax[0],
153153
plot_hdi_kwargs={"color": "yellowgreen"},
154154
)
155155

156156
h_line, h_patch = plot_xY(
157157
datapost.index,
158-
post_pred["posterior_predictive"].mu_ts,
158+
post_pred["posterior_predictive"].mu_ts.isel(treated_units=0),
159159
ax=ax[0],
160160
plot_hdi_kwargs={"color": "yellowgreen"},
161161
)

0 commit comments

Comments
 (0)