Added class methods to get numeric/nonnumeric metric types.

This commit is contained in:
dvanaken
2020-01-13 15:36:43 -05:00
committed by Dana Van Aken
parent a4f8e0b37e
commit ee101d818e

View File

@@ -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