fix: minor refactor

This commit is contained in:
gmega 2025-01-09 20:32:41 -03:00
parent 3c03910fa1
commit f30b5d003d
No known key found for this signature in database
GPG Key ID: 6290D34EAD824B18
2 changed files with 5 additions and 5 deletions

View File

@ -151,9 +151,9 @@ class LogSplitter:
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:

View File

@ -18,8 +18,8 @@ NodeId = str
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)