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

Add US customary units kip and ksi #162

Merged
merged 2 commits into from Jul 22, 2020
Merged

Add US customary units kip and ksi #162

merged 2 commits into from Jul 22, 2020

Conversation

otaithleigh
Copy link
Contributor

Adds the force unit kip (a.k.a. kipf or kilopound, 1000 lbf) and the pressure unit ksi (kips per square inch, 1000 psi). These are most commonly used in architecture and engineering. I'm following pint in making the default name kip refer to a force unit.

I'm a little confused on tests -- some are in test_units.py and some are in test_unyt_array.py. Is there a preferred place for tests for units?

Adds the force unit kip, also referred to as the kilopound or
kilopound-force (kipf). Equals 1000 lbf.

Adds ksi, kips per square inch. Equals 1000 psi.
@ngoldbaum
Copy link
Member

test_units.py is probably best

@otaithleigh
Copy link
Contributor Author

Updated with tests. I put them in test_unyt_array.py since I realized that test_units.py is being used for the str representation.

@ngoldbaum ngoldbaum merged commit e957e4c into yt-project:master Jul 22, 2020
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.

None yet

2 participants