Added class methods to get numeric/nonnumeric metric types.
This commit is contained in:
parent
a4f8e0b37e
commit
ee101d818e
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue