From f30b5d003d0e3f1d5a4a731d9ee3f7a560f052af Mon Sep 17 00:00:00 2001 From: gmega Date: Thu, 9 Jan 2025 20:32:41 -0300 Subject: [PATCH] fix: minor refactor --- benchmarks/logging/logging.py | 4 ++-- benchmarks/logging/sources.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/benchmarks/logging/logging.py b/benchmarks/logging/logging.py index 1624e4a..38d0fcf 100644 --- a/benchmarks/logging/logging.py +++ b/benchmarks/logging/logging.py @@ -151,9 +151,9 @@ def set_format(self, entry_type: Type[LogEntry], output_format: LogSplitterForma def split(self, log: Iterable[LogEntry]): for entry in log: - self.process_single(entry) + self.split_single(entry) - def process_single(self, entry: LogEntry): + def split_single(self, entry: LogEntry): write, _ = self.outputs.get(entry.entry_type, (None, None)) if write is None: diff --git a/benchmarks/logging/sources.py b/benchmarks/logging/sources.py index 5fb2752..8b05819 100644 --- a/benchmarks/logging/sources.py +++ b/benchmarks/logging/sources.py @@ -18,8 +18,8 @@ class LogSource(ABC): - """:class:`LogSource` knows how to retrieve logs for :class:`Identifiable` experiments, and can answer queries - about which experiments are present within it.""" + """:class:`LogSource` knows how to retrieve logs for experiments within experiment groups, and can answer queries + about which experiment ids make up a given group.""" @abstractmethod def experiments(self, group_id: str) -> Iterator[str]: @@ -135,4 +135,4 @@ def split_logs_in_source( parsed = log_parser.parse_single(raw_line) if parsed: - splitter.process_single(parsed) + splitter.split_single(parsed)