Skip to content

Commit a55f97d

Browse files
committed
remove a numerical index in favour of a named dimension
1 parent f1849b1 commit a55f97d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

causalpy/pymc_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ def build_model(self, X, y, coords):
364364
"""
365365
with self:
366366
self.add_coords(coords)
367-
n_predictors = X.shape[1]
367+
n_predictors = X.sizes["coeffs"]
368368
X = pm.Data("X", X, dims=["obs_ind", "coeffs"])
369369
y = pm.Data("y", y, dims=["obs_ind", "treated_units"])
370370
beta = pm.Dirichlet(

0 commit comments

Comments
 (0)