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

StanModule error handling #324

Closed
gowerc opened this issue May 20, 2024 · 0 comments · Fixed by #326
Closed

StanModule error handling #324

gowerc opened this issue May 20, 2024 · 0 comments · Fixed by #326
Assignees
Labels
enhancement New feature or request

Comments

@gowerc
Copy link
Collaborator

gowerc commented May 20, 2024

If a file doesn't exist or if a string bit of code doesn't contain any core stan blocks (e.g. data { ...}) then the resulting Stan module will be blank. This is 9 times out of 10 a user error in that the file path is wrong or the stan code is broken. Ideally we should throw a warning if the user enters a non-empty string and gets an empty StanModule object back to get them to double check that this is intended.

@gowerc gowerc added the enhancement New feature or request label May 20, 2024
@gowerc gowerc self-assigned this May 20, 2024
@gowerc gowerc added this to the Initial Internal Release milestone May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant