Skip to content

Commit

Permalink
Created ipycalc custom unit definition file
Browse files Browse the repository at this point in the history
  • Loading branch information
JWock82 committed Nov 10, 2022
1 parent f129a14 commit 701644b
Show file tree
Hide file tree
Showing 2 changed files with 878 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ipycalc/calc.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

# Use pint for units
import pint
ureg = pint.UnitRegistry() # Creates the units registry
ureg = pint.UnitRegistry('./ipycalc_en.txt') # Creates the units registry
ureg.default_system = 'US' # US Customary unit system
ureg.default_format = '~P' # Shorthand units w/ pretty formatting
ureg.define('plf = pound_force / foot')
Expand Down
Loading

0 comments on commit 701644b

Please sign in to comment.