Feature/22 better error handling#280
Merged
mitzimorris merged 6 commits intodevelopfrom Aug 14, 2020
Merged
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #280 +/- ##
===========================================
+ Coverage 75.89% 76.03% +0.13%
===========================================
Files 9 9
Lines 2199 2195 -4
===========================================
Hits 1669 1669
+ Misses 530 526 -4
Continue to review full report at Codecov.
|
ahartikainen
approved these changes
Aug 14, 2020
| inits=_inits, | ||
| output_dir=output_dir, | ||
| save_diagnostics=save_diagnostics, | ||
| save_diagnostics=False, |
Contributor
There was a problem hiding this comment.
This is not needed anymore?
Member
Author
There was a problem hiding this comment.
right - at the stan::services layer, https://github.com/stan-dev/stan/tree/develop/src/stan/services/optimize - if you look at these methods, they don't take a diagnostics file as an argument.
This was referenced Aug 14, 2020
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Submission Checklist
Summary
When CmdStan method returns a non-zero error code, return as much useful information as can be scraped out of the stdout and stderr messages, plus information about the run and locations of resulting output files, if any.
Exposed and expanded
RunSetmethodget_err_msgs; this function was written a long time ago, but wasn't being called by the CmdStanModel methods. It attempts to get just the relevant messages from the information spew that's written to stdout, in addtion to all msgs written to stderr. It seems to do an OK job on the most common and annoying problem - return code 70 which happens when there's a mismatch between the model's data block variable declarations and the input data.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: