alashworth / test-issue-import

0 stars 0 forks source link

better out-of-bounds messages #98

Open alashworth opened 5 years ago

alashworth commented 5 years ago

Issue by bob-carpenter Tuesday May 31, 2016 at 20:14 GMT Originally opened as https://github.com/stan-dev/stan/issues/1899


Summary:

Current messages for data values out of bounds show up with descriptions like x[k0__] = -10 but needs to be greater than 0, but they should have k0__ replaced with the actual index.

Description:

See above.

Reproducible Steps:

Declare a lower=0 constraint on a data item and feed a value less than 0.

Current Output:

Dummy variable.

Expected Output:

Actual index.

Current Version:

v2.9.0