Added class methods to get numeric/nonnumeric metric types.
This commit is contained in:
@@ -64,6 +64,14 @@ class MetricType(BaseType):
|
|||||||
STATISTICS: 'STATISTICS',
|
STATISTICS: 'STATISTICS',
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def nonnumeric(cls):
|
||||||
|
return (cls.INFO,)
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def numeric(cls):
|
||||||
|
return tuple(sorted(set(cls.TYPE_NAMES.keys()) - set(cls.nonnumeric())))
|
||||||
|
|
||||||
|
|
||||||
class VarType(BaseType):
|
class VarType(BaseType):
|
||||||
STRING = 1
|
STRING = 1
|
||||||
|
|||||||
Reference in New Issue
Block a user