From f117ceaf576ba32abdbf8cc31f6452a4ef3799be Mon Sep 17 00:00:00 2001 From: Dimos Tsouros Date: Tue, 13 May 2025 19:08:09 +0200 Subject: [PATCH 1/2] short dict --- pycona/metrics.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pycona/metrics.py b/pycona/metrics.py index f29c2a4..df2a9eb 100644 --- a/pycona/metrics.py +++ b/pycona/metrics.py @@ -252,7 +252,7 @@ def print_short_statistics(self): results_df = pd.DataFrame([self.metrics_short_dict]) print(results_df.to_string(index=False)) except ImportError: - print(self.metrics_dict) + print(self.metrics_short_dict) @property def short_statistics(self): @@ -264,7 +264,7 @@ def short_statistics(self): results_df = pd.DataFrame([self.metrics_short_dict]) return results_df except ImportError: - return self.metrics_dict + return self.metrics_short_dict def write_to_file(self, filename): """ From b9c0d84bdfa16cd19d89beb4dc34c868895bd459 Mon Sep 17 00:00:00 2001 From: Dimos Tsouros Date: Tue, 13 May 2025 19:09:59 +0200 Subject: [PATCH 2/2] Update metrics.py --- pycona/metrics.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pycona/metrics.py b/pycona/metrics.py index df2a9eb..71515a6 100644 --- a/pycona/metrics.py +++ b/pycona/metrics.py @@ -111,14 +111,14 @@ def increase_queries_size(self, amount): """ self.total_size_queries += amount - def aggreagate_max_waiting_time(self, max2): + def aggreagate_max_waiting_time(self, t): """ Aggregate the maximum waiting time. - :param max2: The new waiting time to compare with the current maximum. + :param t: The new waiting time to compare with the current maximum. """ - if self.max_waiting_time < max2: - self.max_waiting_time = max2 + if self.max_waiting_time < t: + self.max_waiting_time = t def increase_recommendation_queries_count(self, amount=1): """