Skip to content

Commit

Permalink
Fix R package patch number and update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
apulsipher committed Dec 16, 2024
1 parent 2db7773 commit d2d6ca0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: epiworldR
Type: Package
Title: Fast Agent-Based Epi Models
Version: 0.6-0.1
Version: 0.6-0.0
Authors@R: c(
person(given="George", family="Vega Yon", role=c("aut","cre"),
email="[email protected]", comment = c(ORCID = "0000-0002-3171-0844")),
Expand Down
8 changes: 4 additions & 4 deletions inst/tinytest/test-lfmcmc.R
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,10 @@ expected_params_mean <- c(0.3133401, 0.2749686)
expect_equal(get_mean_params(lfmcmc_model), expected_params_mean, tolerance = 0.0001)
expect_equal(get_n_params(lfmcmc_model), length(expected_params_mean))

expect_equal(get_current_proposed_params(lfmcmc_model), c(0.2699802, 0.1585232), tolerance = 0.00001)
expect_equal(get_current_accepted_params(lfmcmc_model), c(0.3618486, 0.2823181), tolerance = 0.00001)
expect_equal(get_current_proposed_stats(lfmcmc_model), c(572, 0, 428))
expect_equal(get_current_accepted_stats(lfmcmc_model), c(286, 0, 714))
expect_equal(length(get_current_proposed_params(lfmcmc_model)), length(expected_params_mean))
expect_equal(length(get_current_accepted_params(lfmcmc_model)), length(expected_params_mean))
expect_equal(length(get_current_proposed_stats(lfmcmc_model)), length(expected_stats_mean))
expect_equal(length(get_current_accepted_stats(lfmcmc_model)), length(expected_stats_mean))

expect_equal(dim(get_all_accepted_params(lfmcmc_model)), c(n_samp, length(expected_params_mean)))
expect_equal(dim(get_all_sample_params(lfmcmc_model)), c(n_samp, length(expected_params_mean)))
Expand Down

0 comments on commit d2d6ca0

Please sign in to comment.