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

Casting bound values as float in inference_parameter.py to prevent parsing errors #405

Draft
wants to merge 4 commits into
base: dev
Choose a base branch
from

Conversation

emprzy
Copy link
Collaborator

@emprzy emprzy commented Nov 22, 2024

Describe your changes.

Casting lb and ub values as floats within the .add_single_parameter() method.

Does this pull request make any user interface changes? If so please describe.

N/A

What does your pull request address? Tag relevant issues.

This pull request addresses GH #380. Instances of scientific notation in configs that don't have a decimal in the mantissa AND a sign in the exponent are read in as strings (as opposed to floats), and this circumvents that.

Tag relevant team members.

@saraloo , is this adequate enough to prevent parsing errors? Perhaps there is somewhere else in this file (or places in other files) that needs a float() cast as well?

TimothyWillard and others added 4 commits November 8, 2024 11:40
Came from actually reviewing and using the docs with @emprzy which
highlighted some short comings.
11/8/2024 Sync GitBook From documentation-gitbook Into main
Cast `lb` and `ub` as `floats` when they are pulled from the config.
@TimothyWillard TimothyWillard added bug Defects or errors in the code. gempyor Concerns the Python core. config Relating to configuration files or their framework. low priority Low priority. quick issue Short or easy fix. labels Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Defects or errors in the code. config Relating to configuration files or their framework. gempyor Concerns the Python core. low priority Low priority. quick issue Short or easy fix.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Parsing error in modifiers/inference parameter (checking in bounds?)
2 participants