in Gauge class defined in metrology/instruments/gauge.py, the doc provides this example code:
class JobGauge(metrology.instruments.Gauge):
def value(self):
return len(queue)
This example doesn't work if use a Reporter like GraphicReporter that need "value" to be a property, we need to add the @property annotation to make it work.
Please update the doc of this class with the following:
A gauge is an instantaneous measurement of a value ::
class JobGauge(metrology.instruments.Gauge):
@property
def value(self):
return len(queue)
gauge = Metrology.gauge('pending-jobs', JobGauge())
in Gauge class defined in metrology/instruments/gauge.py, the doc provides this example code:
This example doesn't work if use a Reporter like GraphicReporter that need "value" to be a property, we need to add the @property annotation to make it work.
Please update the doc of this class with the following:
Thank you