We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a33ad3e commit f02998bCopy full SHA for f02998b
src/pint_array/__init__.py
@@ -117,6 +117,13 @@ def __mul__(self, other):
117
units = self.units
118
return ArrayUnitQuantity(magnitude, units)
119
120
+ def __gt__(self, other):
121
+ if hasattr(other, "units"):
122
+ magnitude = self._call_super_method("__gt__", other.magnitude)
123
+ else:
124
+ magnitude = self._call_super_method("__gt__", other)
125
+ return ArrayUnitQuantity(magnitude, None)
126
+
127
## Linear Algebra Methods ##
128
def __matmul__(self, other):
129
return mod.matmul(self, other)
@@ -190,7 +197,7 @@ def fun(self, name=name):
190
197
"__and__",
191
198
"__eq__",
192
199
"__ge__",
193
- "__gt__",
200
+ # "__gt__",
194
201
"__le__",
195
202
"__lshift__",
196
203
"__lt__",
0 commit comments