-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moving custom units out of powermeter class
- Loading branch information
Kaushik Malapati
authored and
Kaushik Malapati
committed
Oct 22, 2024
1 parent
f88880a
commit 1f47c75
Showing
3 changed files
with
17 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import sympy.physics.units as units | ||
|
||
millijoule = mJ = units.quantities.Quantity("millijoule", abbrev='mJ') | ||
millijoule.set_global_relative_scale_factor(units.prefixes.milli, units.joule) | ||
|
||
microjoule = uJ = units.quantities.Quantity("microjoule", abbrev='uJ') | ||
microjoule.set_global_relative_scale_factor(units.prefixes.micro, units.joule) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters