Skip to content

Commit 65fc1ed

Browse files
committed
fix
1 parent 359a2a0 commit 65fc1ed

5 files changed

Lines changed: 19 additions & 4 deletions

File tree

R/sim_pop_data.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ sim_pop_data <- function(
106106

107107
predpar <-
108108
curve_params |>
109-
filter(.data$antigen_iso %in% antigen_isos) |>
109+
dplyr::filter(.data$antigen_iso %in% antigen_isos) |>
110110
droplevels() |>
111111
prep_curve_params_for_array() |>
112112
df_to_array(dim_var_names = c("antigen_iso", "parameter"))

inst/examples/exm-analyze_sims.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ nrep <- c(50, 200)
1111
# incidence rate in e
1212
lambdas <- c(.05, .8)
1313

14+
antibodies <- c("HlyE_IgA", "HlyE_IgG")
15+
lifespan <- c(0, 10)
1416
sim_df <-
1517
sim_pop_data_multi(
1618
n_cores = n_cores,

inst/examples/exm-autoplot.sim_results.R

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@
1010

1111
# incidence rate in e
1212
lambdas <- c(.05, .8)
13-
13+
antibodies <- c("HlyE_IgA", "HlyE_IgG")
14+
dlims <- rbind(
15+
"HlyE_IgA" = c(min = 0, max = 0.5),
16+
"HlyE_IgG" = c(min = 0, max = 0.5)
17+
)
1418
sim_df <-
1519
sim_pop_data_multi(
1620
n_cores = n_cores,

tests/testthat/fixtures/make-test_sim_results.R

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@ nrep <- c(50, 100, 150, 200)
99

1010
# incidence rate in e
1111
lambdas <- c(.05, .1, .15, .2, .5, .8)
12-
12+
antibodies <- c("HlyE_IgA", "HlyE_IgG")
13+
dlims <- rbind(
14+
"HlyE_IgA" = c(min = 0, max = 0.5),
15+
"HlyE_IgG" = c(min = 0, max = 0.5)
16+
)
1317
sim_df <-
1418
sim_pop_data_multi(
1519
n_cores = n_cores,

tests/testthat/test-autoplot.sim_results.R

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,12 @@ test_that("results are consistent", {
1111

1212
# incidence rate in e
1313
lambdas <- c(.05, .8)
14-
14+
antibodies <- c("HlyE_IgA", "HlyE_IgG")
15+
lifespan <- c(0, 10)
16+
dlims <- rbind(
17+
"HlyE_IgA" = c(min = 0, max = 0.5),
18+
"HlyE_IgG" = c(min = 0, max = 0.5)
19+
)
1520
sim_df <-
1621
sim_pop_data_multi(
1722
n_cores = n_cores,

0 commit comments

Comments
 (0)