mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-12-30 17:31:21 +01:00
replace deprecated object from pint package
This commit is contained in:
@@ -3,7 +3,7 @@ from typing import TypedDict
|
||||
import pint
|
||||
|
||||
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
|
||||
Unit = units.Unit
|
||||
|
||||
Reference in New Issue
Block a user