Closed mitzimorris closed 1 year ago
Thanks for figuring this out. This is why I was asking if there was a newline appended to all of the callbacks. I had thought the answer was "no", but it's apparently "yes"!
There is a longstanding issue to make the logger ignore blank lines: #2577. Partial fix was started in #3098
The issue arose because I assumed there wasn't a newline inserted at the end of each message. If we are going to add newlines, then we probably do not want to ignore blank lines, as they correspond to newlines in the output.
In that case we can probably close those two
Summary:
The console output of the laplace_sample method contains hundreds of blank lines.
Description:
This arises from two things:
To fix the former, remove newlines. To fix the latter, check the stringstream before calling the logger.
Reproducible Steps:
Use CmdStan branch https://github.com/stan-dev/cmdstan/tree/feature/1123-laplace-approx to invoke the
laplace_sample
method, model and input files are in thesrc/test/test-models/
directory.Current Output:
the beginning of the console ouput from call to
laplace_sample
- refresh is default 100, so lots of whitespace between iteration messages.Expected Output:
Additional Information:
Provide any additional information here.
Current Version:
v2.30.0