diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2019-02-23 04:43:08 +0000 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2019-02-23 15:44:37 +0000 |
commit | 77d6d55e90938321a8d4160f58442d02a4d8adbd (patch) | |
tree | c95644b28d6316d6a6b61dcb367925d634eec5fb | |
parent | bf90917e9fe473c16c5aa32dcadfa8c2080d4699 (diff) |
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
-rw-r--r-- | src/osmo_ms_driver/location_update_test.py | 4 |
1 files 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) |