Skip to content

Commit

Permalink
Show correct number of chains (#362)
Browse files Browse the repository at this point in the history
  • Loading branch information
gowerc authored Jun 19, 2024
1 parent 887f892 commit 00d2f9c
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion R/JointModelSamples.R
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ as_print_string.JointModelSamples <- function(object, indent = 1, ...) {
sprintf(
paste(template_padded, collapse = "\n"),
as.CmdStanMCMC(object)$metadata()$iter_sampling,
as.CmdStanMCMC(object)$metadata()$num_chains
as.CmdStanMCMC(object)$num_chains()
)
}

Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/_snaps/JointModelSamples.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
JointModelSamples Object with:
# of samples per chain = 100
# of chains = 1
# of chains = 2
Variables:
Ypred[2800]
Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/_snaps/LongitudinalQuantiles.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
Output
LongitudinalQuantities Object:
# of samples = 100
# of samples = 200
# of quantities = 44

Expand All @@ -24,7 +24,7 @@
Output
LongitudinalQuantities Object:
# of samples = 100
# of samples = 200
# of quantities = 402

4 changes: 2 additions & 2 deletions tests/testthat/_snaps/SurvivalQuantities.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
Output
SurvivalQuantities Object:
# of samples = 100
# of samples = 200
# of quantities = 33
Type = surv
Expand All @@ -27,7 +27,7 @@
Output
SurvivalQuantities Object:
# of samples = 100
# of samples = 200
# of quantities = 4400
Type = loghaz
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/helper-example_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ ensure_test_data_1 <- function() {
data = jdat,
iter_sampling = 100,
iter_warmup = 150,
chains = 1,
chains = 2,
refresh = 0,
parallel_chains = 1
)
Expand Down

0 comments on commit 00d2f9c

Please sign in to comment.