Closed NicholasCowie closed 2 weeks ago
Thanks for reporting, I guess we should add a try except in the parser or some check for the true/false strings. Not sure when I'll be able to take a look. After quickly skimming the linked PR, it looks like this is for sampling/model metadata/arguments only but not for actual samples, can you confirm?
Thank you, and I can confirm this is not for any of the actual samples.
Regards, Nick
Describe the bug A clear and concise description of what the bug is.
When arviz parses cmdstan csv files in the module
io_cmdstan
it assumes that the boolean arguments are represented as numbers 0 or 1. However, since PR https://github.com/stan-dev/cmdstan/pull/1260 these are now represented as strings 'false' and 'true'. This causes arviz.from_cmdstan() to break:To Reproduce
test.py file:
test.stan file:
The output from running test.py is as follows:
Expected behavior Load an inference data object
Additional context cmdstan version 2.35.0 cmdstanpy==1.2.3 arviz==0.18.0