Skip to content

Commit

Permalink
context docs
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewgsavage committed Feb 2, 2024
1 parent be6e247 commit 2dee199
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/user/contexts.rst
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,8 @@ functions. For example:

.. doctest::

>>> ureg = pint.get_application_registry()
>>> ureg = pint.UnitRegistry()
>>> pint.set_application_registry(ureg)
>>> c = pint.Context('ab')
>>> c.add_transformation('[length]', '[time]',
... lambda ureg, x: x / ureg.speed_of_light)
Expand Down

0 comments on commit 2dee199

Please sign in to comment.