We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 49e8fa7 commit 9a06b53Copy full SHA for 9a06b53
xarray/tests/test_units.py
@@ -75,13 +75,15 @@ def assert_equal(q1, q2):
75
76
77
class PintInfo(UnitInfo):
78
- unit = unit_registry.m
79
- compatible_unit = unit_registry.mm
80
- incompatible_unit = unit_registry.s
81
- dimensionless = unit_registry.dimensionless
+ ureg = unit_registry
+
+ unit = ureg.m
+ compatible_unit = ureg.mm
82
+ incompatible_unit = ureg.s
83
+ dimensionless = ureg.dimensionless
84
- unit_type = unit_registry.Unit
- quantity_type = unit_registry.Quantity
85
+ unit_type = ureg.Unit
86
+ quantity_type = ureg.Quantity
87
88
@staticmethod
89
def strip_units(quantity):
0 commit comments