Skip to content

Commit

Permalink
Fix bug introduced by copy/paste
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanhmorris committed Jan 18, 2025
1 parent 001e292 commit 4131e81
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyrenew_hew/pyrenew_hew_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def first_data_date_overall(self):

@property
def last_data_date_overall(self):
return min(filter(None, self.last_data_dates.values()))
return max(filter(None, self.last_data_dates.values()))

Check warning on line 113 in pyrenew_hew/pyrenew_hew_data.py

View check run for this annotation

Codecov / codecov/patch

pyrenew_hew/pyrenew_hew_data.py#L113

Added line #L113 was not covered by tests

@property
def n_days_post_init(self):
Expand Down
4 changes: 2 additions & 2 deletions pyrenew_hew/pyrenew_hew_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def sample(self, n_days_post_init: int):
repeats=7,
axis=0,
)[:n_days_post_init, :]
)
) # indexed rel to first post-init day.

i0_subpop_rv = DeterministicVariable(
"i0_subpop", i_first_obs_over_n_subpop
Expand Down Expand Up @@ -318,7 +318,7 @@ def sample(
iedr = jnp.repeat(
transformation.SigmoidTransform()(p_ed_ar + p_ed_mean),
repeats=7,
)[:n_datapoints]
)[:n_datapoints] # indexed rel to first ed report day
# this is only applied after the ed visits are generated, not to all
# the latent infections. This is why we cannot apply the iedr in
# compute_delay_ascertained_incidence
Expand Down

0 comments on commit 4131e81

Please sign in to comment.