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
Feature optional profiling include paths #54
Conversation
Codecov Report
@@ Coverage Diff @@
## main #54 +/- ##
=====================================
Coverage 0.00% 0.00%
=====================================
Files 13 13
Lines 655 685 +30
=====================================
- Misses 655 685 +30
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks really nice and as I send before worth considering for an upstream contribution to cmsdstanr. I have some very boring style points and would like the linting sorted out 😄
Thanks for reviewing @seabbs :) I have improved the formatting as suggested. Will consider proposing it to |
/document |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM to me. Just updating the docs and then will merge (and add news etc direct to master).
This PR extends the optional profiling also to .stan files in the include paths, and moves the whole functionality to a separate function which is called by
enw_model
if required. All manipulated .stan files with profiling statements removed are stored in the same temporary directory.Implementation details: By using the same folder structure in the temporary directory as in the original include paths, the relative include paths still apply and the model code is not further touched aside from removing the profiling. This should make the approach very robust. Also, the names of the main model and the included file paths are now directly mirrored, so that warnings or errors from stanc stating a filepath allow the user to pinpoint the corresponding original .stan file.
This PR also adds more detailed profiling statements to the likelihood parts of the model.