mirror of
https://github.com/ARM-software/devlib.git
synced 2025-01-31 02:00:45 +00:00
MeasurementsCsv: rename itermeasurments
Renamed to iter_measurments for readability.
This commit is contained in:
parent
ff366b3fd9
commit
dfd0b8ebd9
@ -56,7 +56,7 @@ class DerivedEnergyMeasurements(DerivedMeasurements):
|
||||
power_results = defaultdict(float)
|
||||
|
||||
# Process data
|
||||
for count, row in enumerate(measurements_csv.itermeasurements()):
|
||||
for count, row in enumerate(measurements_csv.iter_measurements()):
|
||||
if use_timestamp:
|
||||
last_ts = row_ts
|
||||
row_ts = time_measurment.convert(float(row[ts_index].value), 'time')
|
||||
|
@ -152,9 +152,9 @@ class MeasurementsCsv(object):
|
||||
self._load_channels()
|
||||
|
||||
def measurements(self):
|
||||
return list(self.itermeasurements())
|
||||
return list(self.iter_measurements())
|
||||
|
||||
def itermeasurements(self):
|
||||
def iter_measurements(self):
|
||||
self._fh.seek(0)
|
||||
reader = csv.reader(self._fh)
|
||||
reader.next() # headings
|
||||
|
Loading…
x
Reference in New Issue
Block a user