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

POEM 097: A Quantity Object to associate units with values. #197

Closed
wants to merge 4 commits into from

Conversation

robfalck
Copy link
Contributor

This adds a lightweight Quantity object that associates some numerical value (any numerical value allowed by OpenMDAO...floats, or numpy arrays) with a unit.

POEM_097.md Outdated
### Why adding a `units` argument to OptionsDictionary declare_options won't work.

Some users have experiemented with passing tuples as options, where the second value contains units.
This isn't ideal since another unit may expect a tuple that doesn't involve units, leading to ambiguity.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since another option may expect?

@robfalck
Copy link
Contributor Author

The Aviary team has decided to attack this problem from a different perspective.

@robfalck robfalck closed this May 30, 2024
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