Stan development repository. The master branch contains the current release. The develop branch contains the latest stable development. See the Developer Process Wiki for details.
The JSON diagnostic files for a single-path pathfinder don't have a final newline - should the pathfinder service add one? should the stan::callbacks::json_writer have special method to output newline?
Description:
From CmdStan WIP branch feature/1149-pathfinder-v2, ran Stan executable:
./examples/bernoulli/bernoulli data file=examples/bernoulli/bernoulli.data.json pathfinder output file=test/pathfinder.csv diagnostic_file=test/pathfinder.json
The size of all output files looks good, but the number of lines in the .json files is reported as 0. The cat command returns w/out a newline:
Summary:
The JSON diagnostic files for a single-path pathfinder don't have a final newline - should the pathfinder service add one? should the
stan::callbacks::json_writer
have special method to output newline?Description:
From CmdStan WIP branch
feature/1149-pathfinder-v2
, ran Stan executable:The size of all output files looks good, but the number of lines in the .json files is reported as 0. The
cat
command returns w/out a newline:Reproducible Steps:
see above
Current Output:
see above
Expected Output:
File ends with eol.
Current Version:
v2.32.2