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

Set individual params in manager #53

Merged
merged 3 commits into from
Jun 18, 2024

Conversation

bsutherland333
Copy link
Collaborator

This commit add the ability to change previously declared parameters in code. It also renames some of the functions to explicitly include the datatype related to that parameter, as I found declare_param("string", "value") would get mapped to the bool overload instead of the string one. Only declare_param("string", std::string("value")) resulted in correct behavior.

I found that when using the declare_param function with the string datatype, unless the value was explicitly instantiated as a string (std::string("value") instead of "value"), the value would get cast to a bool
@bsutherland333 bsutherland333 self-assigned this Jun 17, 2024
@JMoore5353 JMoore5353 force-pushed the set-individual-params-in-manager branch from f0aaef2 to cafa745 Compare June 18, 2024 15:07
@JMoore5353
Copy link
Contributor

JMoore5353 commented Jun 18, 2024

Looks good!

In case you are looking at the commit history, I thought, based on some testing, that the set_parameters method wasn't needed, so I deleted it, but then realized that my tests weren't complete. So I added it back in, since we do need the function calls to set_parameters.

@bsutherland333 bsutherland333 merged commit 710f205 into main Jun 18, 2024
4 checks passed
@bsutherland333 bsutherland333 deleted the set-individual-params-in-manager branch June 18, 2024 15:14
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

Successfully merging this pull request may close these issues.

2 participants