Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewgsavage committed Feb 2, 2024
1 parent b2a349f commit 3fdbff1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/user/defining-quantities.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ quantity by multiplying a ``Unit()`` and a scalar:

>>> import pint
>>> ureg = pint.UnitRegistry()
>>> pint.set_application_registry(ureg)
>>> ureg.meter
<Unit('meter')>
>>> 30.0 * ureg.meter
Expand Down
1 change: 1 addition & 0 deletions docs/user/systems.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Pint Unit Registry has the concept of system, which is a group of units

>>> import pint
>>> ureg = pint.UnitRegistry(system='mks')
>>> pint.set_application_registry(ureg)
>>> ureg.default_system
'mks'

Expand Down

0 comments on commit 3fdbff1

Please sign in to comment.