Measurer Deprecated
Deprecated. This class is part of the deprecated saleae.range_measurements package.
Deprecated: Base class for v1 range measurement extensions.
Subclasses must define a supported_measurements class property that returns the list of measurement keys this measurer can compute, and implement the measure method to return computed values.
At runtime, requested_measurements contains only the subset of supported measurements that the user has enabled.
class MyMeasurer(AnalogMeasurer):
supported_measurements = ['min', 'max']
def process_data(self, data):
for sample in data:
...
def measure(self):
return {'min': self._min, 'max': self._max}
Attributes
| Name | Type | Description |
|---|---|---|
requested_measurements | List[str] | The list of measurement keys the user has enabled for this run. |
Methods
Create a measurer for the given requested measurements.
requested_measurements- Measurement keys the user has enabled.
Return computed measurement values.
Called after all data has been processed. Must return a dictionary mapping measurement keys to their computed float values. Only keys present in requested_measurements need to be included.
- Returns
- A dict mapping measurement keys to float values.
AI/LLM users: see llms-extensions.txt for machine-readable documentation.