Skip to content

Commit 81d43ff

Browse files
committed
add exception
1 parent b5a1181 commit 81d43ff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

causalpy/pymc_experiments.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -747,4 +747,5 @@ def _get_treatment_effect_coeff(self) -> str:
747747
for label in self.labels:
748748
if ("group" in label) & (":" not in label):
749749
return label
750-
# TODO: raise an exception if we fail to find the coefficient we want
750+
751+
raise NameError("Unable to find coefficient name for the treatment effect")

0 commit comments

Comments
 (0)