MCPcopy Create free account
hub / github.com/FonaTech/Clouds-Coder / load

Method load

split_coder.py:79–88  ·  view source on GitHub ↗
(cls, output_dir: Path)

Source from the content-addressed store, hash-verified

77
78 @classmethod
79 def load(cls, output_dir: Path) -> Optional["SplitManifest"]:
80 path = output_dir / cls.FILENAME
81 if not path.exists():
82 return None
83 try:
84 data = json.loads(path.read_text(encoding="utf-8"))
85 data["nodes"] = [ManifestEntry(**n) for n in data.get("nodes", [])]
86 return cls(**data)
87 except Exception:
88 return None
89
90
91@dataclass(frozen=True)

Callers 2

run_self_checkFunction · 0.45
runMethod · 0.45

Calls 1

ManifestEntryClass · 0.70

Tested by

no test coverage detected