From 77d6d55e90938321a8d4160f58442d02a4d8adbd Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Sat, 23 Feb 2019 04:43:08 +0000 Subject: ms_driver: Rename method to hopefully be more clear This is finding min/max in a dataset. Call it like this and update the caller. Change-Id: Ic7f5cd34639f897e460ca1edcb4f9b6df44683e9 --- src/osmo_ms_driver/location_update_test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osmo_ms_driver/location_update_test.py b/src/osmo_ms_driver/location_update_test.py index 90e405e..8500607 100644 --- a/src/osmo_ms_driver/location_update_test.py +++ b/src/osmo_ms_driver/location_update_test.py @@ -198,7 +198,7 @@ class MassUpdateLocationTest(log.Origin): def all_completed(self): return self._outstanding == 0 - def results_min_max(self, results): + def find_min_max(self, results): min_value = max_value = None for result in results: if min_value is None or result.lu_delay() < min_value: @@ -209,7 +209,7 @@ class MassUpdateLocationTest(log.Origin): def print_stats(self): all_completed = self.all_completed() - min_value, max_value = self.results_min_max(filter(lambda x: x.has_lu_time(), self._results.values())) + min_value, max_value = self.find_min_max(filter(lambda x: x.has_lu_time(), self._results.values())) self.log("Tests done", all_completed=all_completed, min=min_value, max=max_value) -- cgit v1.2.3