Skip to content

Commit

Permalink
removed "filename" column from llik dataframes/files
Browse files Browse the repository at this point in the history
  • Loading branch information
alsnhll committed Apr 19, 2024
1 parent 7781507 commit 4ccc284
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ aggregate_and_calc_loc_likelihoods <- function(
## We use a data frame for debugging, only ll is used
likelihood_data[[location]] <- dplyr::tibble(
ll = this_location_log_likelihood,
filename = hosp_file,
subpop = location,
accept = 0, # acceptance decision (0/1) . Will be updated later when accept/reject decisions made
accept_avg = 0, # running average acceptance decision
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ test_that("aggregate_and_calc_loc_likelihoods returns a likelihood per location


expect_that(nrow(tmp), equals(length(stuff$all_locations)))
expect_that(sort(colnames(tmp)), equals(sort(c("ll","accept","accept_prob","accept_avg","filename",stuff$obs_subpop))))
expect_that(sort(colnames(tmp)), equals(sort(c("ll","accept","accept_prob","accept_avg",stuff$obs_subpop))))

})

Expand Down

0 comments on commit 4ccc284

Please sign in to comment.