Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't require fixed_param for models with zero parameters (only GQs) for CmdStan >= 2.36 #1046

Merged
merged 5 commits into from
Nov 26, 2024

Conversation

jgabry
Copy link
Member

@jgabry jgabry commented Nov 25, 2024

Submission Checklist

  • Run unit tests
  • Declare copyright holder and agree to license (see below)

Summary

As of CmdStan 2.36 fixed_param is not required if the model has no parameters (e.g. only generated quantities).

Copyright and Licensing

Please list the copyright holder for the work you are submitting
(this will be you or your assignee, such as a university or company):
Columbia University

By submitting this pull request, the copyright holder is agreeing to
license the submitted work under the following licenses:

@@ -719,7 +719,7 @@ read_csv_metadata <- function(csv_file) {
dense_inv_metric <- TRUE
} else if (inv_metric_next) {
inv_metric_split <- strsplit(gsub("# ", "", line), ",")
numeric_inv_metric_split <- rapply(inv_metric_split, as.numeric)
numeric_inv_metric_split <- suppressWarnings(rapply(inv_metric_split, as.numeric))
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the model has no parameters but fixed_param is FALSE this would produce warnings. Simplest thing to do is just suppress.

@jgabry
Copy link
Member Author

jgabry commented Nov 26, 2024

Super simple so going to go ahead and merge this since everything is passing

@jgabry jgabry merged commit 591b4ab into master Nov 26, 2024
11 checks passed
@jgabry jgabry deleted the no-fixed-param-error branch November 26, 2024 23:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant