1
0
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:
Sergei Trofimov 2017-08-21 11:01:42 +01:00
parent ff366b3fd9
commit dfd0b8ebd9
2 changed files with 3 additions and 3 deletions

View File

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

View File

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