phenotypic.sdk_.resolve_study_db_path#

phenotypic.sdk_.resolve_study_db_path(output_dir: Path) Path[source]#

Return the study DB that exists, preferring .pht-tune-cache/.

Read-only resolver: a relocated run keeps study.db under the hidden tune cache; a legacy run kept it at the output root. Falls back to the new location when neither exists (so a cold sampler restart from a missing study.db is harmless — no migration is performed).

Parameters:

output_dir (Path) – The run output directory.

Returns:

The study DB path that exists, else the new cache location.

Return type:

Path