Skip to content

Commit 9941c02

Browse files
committed
all tests now passing 🎉 (one failing doctest)
1 parent a17f5c9 commit 9941c02

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

causalpy/experiments/diff_in_diff.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def __init__(
116116
self.y = xr.DataArray(
117117
self.y[:, 0],
118118
dims=["obs_ind"],
119-
coords={"obs_ind": self.data.index},
119+
coords={"obs_ind": np.arange(self.y.shape[0])},
120120
)
121121

122122
# fit model
@@ -200,10 +200,10 @@ def __init__(
200200
)
201201
elif isinstance(self.model, RegressorMixin):
202202
# This is the coefficient on the interaction term
203-
# TODO: THIS IS NOT YET CORRECT ?????
203+
# TODO: CHECK FOR CORRECTNESS
204204
self.causal_impact = (
205205
self.y_pred_treatment[1] - self.y_pred_counterfactual[0]
206-
)[0]
206+
)
207207
else:
208208
raise ValueError("Model type not recognized")
209209

0 commit comments

Comments
 (0)