MCPcopy Create free account
hub / github.com/ScaleML/AgentSPEX / _read_full

Method _read_full

scripts/dashboard.py:433–443  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

431 self._last_size = 0
432
433 def _read_full(self) -> None:
434 with open(self.path, "r", encoding="utf-8", errors="replace") as f:
435 for line in f:
436 self.parser.parse_line(line.rstrip("\n"))
437 self._last_position = f.tell()
438 try:
439 stat = self.path.stat()
440 self._last_size = stat.st_size
441 self._last_inode = stat.st_ino
442 except Exception:
443 pass
444
445 def load_initial(self) -> None:
446 if not self.path.exists():

Callers 2

load_initialMethod · 0.95
_watch_loopMethod · 0.95

Calls 1

parse_lineMethod · 0.80

Tested by

no test coverage detected