Skip to content

Commit 68950b4

Browse files
authored
Updated pint-related code to prevent DeprecationWarning. (#36)
1 parent 51fe79e commit 68950b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

intro/mass-force-and-newtons-law-of-gravitation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import numpy as np
2323
2424
ureg = UnitRegistry()
2525
ureg.setup_matplotlib()
26-
ureg.default_format = "~H"
26+
ureg.formatter.default_format = "~H"
2727
Q_ = ureg.Quantity
2828
2929
G = Q_(6.6742E-11, "m**3 / (kg * s**2)")

0 commit comments

Comments
 (0)