Skip to content

Commit 12f674b

Browse files
committed
fix pint warning
1 parent 7e16938 commit 12f674b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/riverine/units.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
]
3131

3232
ureg = pint.UnitRegistry(non_int_type=Decimal)
33-
ureg.default_format = "~P"
33+
ureg.formatter.default_format = "~P"
3434

3535
uL = ureg.Unit("uL")
3636
# µL = ureg.uL

0 commit comments

Comments
 (0)