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

Unitful Values #201

Open
eloiseyang opened this issue Nov 1, 2024 · 1 comment
Open

Unitful Values #201

eloiseyang opened this issue Nov 1, 2024 · 1 comment

Comments

@eloiseyang
Copy link
Collaborator

Is your feature request related to a problem? Please describe.
Attaching units to physical values is a common feature of scientific codes. Our current solution in many of our matlab codes is to apply the unit transformation factors as needed (e.g. x = x * 1000 to convert from kilograms to grams).

Describe the solution you'd like
This is a complicated software task, so I'm not sure this is something we want to create ourselves. We should investigate libraries that already implement unitful values and think about whether or not we want to use them.

Describe alternatives you've considered
The current solution is not bad, but I think this could be nice. I also think it could over complicate our code. I'd like to open a discussion about it.

@eloiseyang
Copy link
Collaborator Author

Here's a package that could suit our needs, for example.

https://pypi.org/project/siunits/

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

No branches or pull requests

1 participant