Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to set init files with num_chains > 1 #1058

Closed
rok-cesnovar opened this issue Nov 15, 2021 · 1 comment
Closed

Unable to set init files with num_chains > 1 #1058

rok-cesnovar opened this issue Nov 15, 2021 · 1 comment
Assignees

Comments

@rok-cesnovar
Copy link
Member

rok-cesnovar commented Nov 15, 2021

Description:

With num_chains > 1, one would expect that if you set init=file.json, CmdStan would look for init=file_1.json, init=file_2.json, init=file_3.json, and so on.

It however errors with a weird error that .json is not supported. The culprit is this line:

if (file_ending != ".json" || file_ending != ".csv") {
(should be && not ||).

The other issue is that if those files are not found it segfaults.

Reported here

Current Version:

v2.28.1

@rok-cesnovar
Copy link
Member Author

rok-cesnovar commented Nov 15, 2021

To clarify when does it segfault. Create file.json and no file_1.json, and call a model with init=file.json.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant