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

Allow math, references in random distribution parameters #85

Open
rdoddanavar opened this issue Feb 5, 2022 · 0 comments
Open

Allow math, references in random distribution parameters #85

rdoddanavar opened this issue Feb 5, 2022 · 0 comments
Assignees
Labels
bug Broken feature or failed use case pre-processing Simulation I/O & data management

Comments

@rdoddanavar
Copy link
Owner

Current implementation of YAML input file parser (util_yaml.process()) does not allow for math expressions or internal references in parameter list when specifying random distribution.

For example, this is currently not possible:

mass:
    massBody:
        value: 5.0
        unit: lbm
        dist:
            name: normal
            param: [ref(mass.massBody.value), 0.1*ref(mass.massBody.value)]

Instead, the user would be forced to hardcode these values to achieve the desired effect:

mass:
    massBody:
        value: 5.0
        unit: lbm
        dist:
            name: normal
            param: [5.0, 0.5]
@rdoddanavar rdoddanavar added bug Broken feature or failed use case pre-processing Simulation I/O & data management labels Feb 5, 2022
@rdoddanavar rdoddanavar self-assigned this Feb 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Broken feature or failed use case pre-processing Simulation I/O & data management
Projects
None yet
Development

No branches or pull requests

1 participant