1
0
mirror of https://github.com/ARM-software/devlib.git synced 2025-09-07 04:21:54 +01:00

DerivedMeasurements: add process_raw() + doc updates

- Add process_raw() method to the API. This is inteneded to be invoked
  on any raw output (i.e. not MeasurmentCsv) generated by an Instrument.
- Both process() process_raw() are portional to be overriden by
  impolementation; the default behavior is to return an empty list.
- The output specification for both is extened to allow
  MeasurementCsv's, as well as DerivedMetric's.
- Documentation has been reworded for clarity.
This commit is contained in:
Sergei Trofimov
2017-09-07 14:19:24 +01:00
parent dd26b43ac5
commit adf25f93bb
2 changed files with 48 additions and 19 deletions

View File

@@ -53,6 +53,8 @@ class DerivedMetric(object):
class DerivedMeasurements(object):
@staticmethod
def process(measurements_csv):
raise NotImplementedError()
def process(self, measurements_csv):
return []
def process_raw(self, *args):
return []