Skip to content

Commit

Permalink
fix: minor refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
gmega committed Jan 9, 2025
1 parent 3c03910 commit f30b5d0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions benchmarks/logging/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions benchmarks/logging/sources.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]:
Expand Down Expand Up @@ -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)

0 comments on commit f30b5d0

Please sign in to comment.