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

Warn about unused parameters #48

Open
wtraylor opened this issue Jun 17, 2021 · 0 comments
Open

Warn about unused parameters #48

wtraylor opened this issue Jun 17, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@wtraylor
Copy link
Owner

Currently, the user can put any kind of parameters in the instruction file even if they are not used. For example, if “Lifespan” is not a mortality factor, one can still set hft.life_history.lifespan.

I think the user should get a notification if there are parameters in the instruction file that are not used.
This can be important in case the user assumes that a parameter has an effect, but actually the underlying module is inadvertently disabled.

Implementing this could be easily done in Hft::is_valid() and Parameters::is_valid(): Just write into the message stream, but still return true (“is valid”).

@wtraylor wtraylor added the enhancement New feature or request label Jun 17, 2021
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

No branches or pull requests

1 participant