Skip to content

Commit

Permalink
Merge branch 'main' into round_to
Browse files Browse the repository at this point in the history
  • Loading branch information
drbenvincent committed Dec 22, 2023
2 parents 132ff9a + fc28a3b commit a9187dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions causalpy/pymc_experiments.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ def __init__(
# set experiment type - usually done in subclasses
self.expt_type = "Pre-Post Fit"
# split data in to pre and post intervention
self.datapre = data[data.index <= self.treatment_time]
self.datapost = data[data.index > self.treatment_time]
self.datapre = data[data.index < self.treatment_time]
self.datapost = data[data.index >= self.treatment_time]

self.formula = formula

Expand Down
4 changes: 2 additions & 2 deletions causalpy/skl_experiments.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ def __init__(
super().__init__(model=model, **kwargs)
self.treatment_time = treatment_time
# split data in to pre and post intervention
self.datapre = data[data.index <= self.treatment_time]
self.datapost = data[data.index > self.treatment_time]
self.datapre = data[data.index < self.treatment_time]
self.datapost = data[data.index >= self.treatment_time]

self.formula = formula

Expand Down

0 comments on commit a9187dd

Please sign in to comment.