mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-06-05 21:20:40 +02:00
replace deprecated object from pint package
This commit is contained in:
parent
fd73653433
commit
8bf0b771fa
@ -3,7 +3,7 @@ from typing import TypedDict
|
|||||||
import pint
|
import pint
|
||||||
|
|
||||||
units: pint.UnitRegistry = pint.UnitRegistry(autoconvert_offset_to_baseunit=True)
|
units: pint.UnitRegistry = pint.UnitRegistry(autoconvert_offset_to_baseunit=True)
|
||||||
units.default_format = "~P" # pretty and short format
|
units.formatter.default_format = "~P" # pretty and short format
|
||||||
|
|
||||||
Quantity = pint.Quantity
|
Quantity = pint.Quantity
|
||||||
Unit = units.Unit
|
Unit = units.Unit
|
||||||
|
Loading…
x
Reference in New Issue
Block a user