-
Notifications
You must be signed in to change notification settings - Fork 16
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
Adding some aliases #90
base: main
Are you sure you want to change the base?
Conversation
added common aliases and definitions of power
scimath/units/electromagnetism.py
Outdated
@@ -23,19 +30,25 @@ | |||
############################################################################### | |||
|
|||
volts = volt | |||
v = volt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you keep existing definitions - removing them will break existing code that expects them.
Test failures are because of removed unit types. |
This is generally fine, and I would be Ok with merging this, but we need to keep backward compatibility even if we have some synonyms which are not precisely the right thing. |
Codecov Report
@@ Coverage Diff @@
## master #90 +/- ##
==========================================
+ Coverage 60.9% 62.03% +1.13%
==========================================
Files 75 75
Lines 3210 3306 +96
Branches 368 368
==========================================
+ Hits 1955 2051 +96
Misses 1163 1163
Partials 92 92
Continue to review full report at Codecov.
|
I added some aliases in the unit scripts for better usability...