phenotypic.sdk_.read_run_manifest#

phenotypic.sdk_.read_run_manifest(output_dir: Path) dict | None[source]#

Read the run manifest if present, resolving legacy layouts.

Reads <output>/.phenotypic/progress/manifest.json, falling back to the pre-migration <output>/progress/manifest.json for legacy runs (via resolve_manifest_json_path()). Replaces 4 inline json.loads(manifest_path.read_text()) blocks.

Parameters:

output_dir (Path) – Run output directory containing progress/.

Returns:

Parsed manifest dict, or None when the file is missing or unparseable (callers can decide whether absence is fatal).

Return type:

dict | None