Skip to content

Commit

Permalink
Merge pull request #1559 from bmfazio/testfix
Browse files Browse the repository at this point in the history
Special casing for lp_approx__
  • Loading branch information
paul-buerkner authored Nov 9, 2023
2 parents a00c56a + 1ce56d0 commit 37a135f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions R/backends.R
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,8 @@ fit_model <- function(model, backend, ...) {
variables <- repair_variable_names(metadata$metadata$variables)
variables <- unique(sub("\\[.+", "", variables))
variables <- setdiff(variables, exclude)
# temp fix for cmdstanr not recognizing the variable names it produces #1473
variables <- ifelse(variables == "lp_approx__", "log_g__", variables)
# transform into stanfit object for consistent output structure
out <- read_csv_as_stanfit(out$output_files(), variables = variables)
out <- repair_stanfit(out)
Expand Down

0 comments on commit 37a135f

Please sign in to comment.