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

Improved IP error messaging #33

Open
ckirkman-IDM opened this issue Aug 27, 2024 · 0 comments
Open

Improved IP error messaging #33

ckirkman-IDM opened this issue Aug 27, 2024 · 0 comments

Comments

@ckirkman-IDM
Copy link

I got this error when accidentally configuring an IP with 3 values and 2 initial values:

GeneralConfigurationException:
Exception in utils/BaseProperties.cpp at 343 in ReadProperty.
Number of Values in Values (3) needs to be the same as number of values in Initial_Distribution (2).

It would be great for this message to be more informative to aid in detecting the source of the misconfiguration, especially if users ever get around to changing the "default" HIV IP states in future projects. Suggested message:

IP: Accessibility
Number of values in Values (3) needs to be the same as number of values in Initial_Distribution (2):
values: ['LOW', 'MEDIUM', HIGH']
initial_distribution: [0.8, 0.2]

Note I accidentally was setting IP:Risk initial values with initial distributions for IP:Accessibility :D

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