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

Update util.py #379

Merged
merged 5 commits into from
Oct 4, 2024
Merged

Update util.py #379

merged 5 commits into from
Oct 4, 2024

Conversation

djinnome
Copy link
Contributor

@djinnome djinnome commented Oct 1, 2024

If the parameter is a float or an int assign the parameter value. Should also put a check to see if the value is a string before passing the value to safe_parse, and raise an error if it isn't.

@djinnome
Copy link
Contributor Author

djinnome commented Oct 1, 2024

Resolves #378

djinnome and others added 5 commits October 3, 2024 21:55
If the parameter is a float **or an int** assign the parameter value. Otherwise parse it.
Added type check for int, float, or str and raise a value error if none of the above
coercing `param_value` `int` to `float` allows unit tests to pass on the pyciemss side.
Added param_key and type of the param_value in the ValueError message
@bgyori bgyori merged commit 5335739 into gyorilab:main Oct 4, 2024
0 of 4 checks passed
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