this error means that CmdStan ran and the sampler ran produced a set of Stan CSV files.
CmdStanPy expected that all CSV files would have a certain number of rows, columns, but they didn’t for some reason.
did you specify an output_dir when you ran the sample method? or do you still have the Python session running? the question is what’s going on with the CSV files and is this related to problems in the generated quantities block.
if you re-run the sample method, please specify show_console=True - this will give more information.
the data being fed by a Python dictionary doesn’t matter, except that it’s a big dictionary to keep in memory. CmdStanPy’s method write_stan_json is being called under-the-hood to create the JSON data file for CmdStan.
yes, you should specify an output dir - which will be created if it doesn’t exist - and the result will contain both the Stan CSV output files and the corresponding CmdStan messages to stdout and stderr.
e.g.:
fit = model.sample(data=data, output_dir=os.path.join('.', 'bar'))
creates directory bar, which has contains a bunch of output files (here running bernoulli test model):
maybe tmp storage truncated or deleted some of the output files? that’s kinda rude - not sure how we can check for this - by the time it happens, it’ll be too late to do anything, in which case, all we can do is add something to the docs.