-
-
Notifications
You must be signed in to change notification settings - Fork 69
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
documentation: Provide info how to set up pedantic mode of compilation #624
Comments
Pedantic mode is an option for the stanc3 compiler, so you can enable it in the constructor like:
or in calls to An example of this would be useful, but I generally don't think using pedantic mode is very informative. Judging whether the warnings it raises are legitimate or not can be as difficult as manually diagnose issues in the model. |
Well, I thought to do it this way, but unfortunately it does not work. No warnings, no anything. And I don't believe my code to be warning free. |
I just manually edited the included
So it does output warnings if they exist. You can also try https://rok-cesnovar.github.io/stanc3js-demo/pedantic.html to run pedantic mode on your code separately to see if any warnings are produced |
Ok, so either pedantic is absolutely useless, or I'm an amazing stan programmer ;p |
Also if we are talking about documenting compiler options: Why |
|
Auto formatting in particular is not useful as a part of compilation, because you want the output of that separately. This is why |
Summary:
After long reading and going through code I still can't turn on the pedantic mode from cmdstanpy.
I think that it should be given as an example.
Search through documentation for 'pedantic' leads you to source for
cmdstanpy.compiler_opts
The text was updated successfully, but these errors were encountered: