File size: 868 Bytes
c289d87 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | from __future__ import annotations
from dataclasses import dataclass
from pathlib import Path
@dataclass
class ProjectPaths:
"""Resolved project paths for data/results/config management."""
root: Path
@property
def data_dir(self) -> Path:
return self.root / "data"
@property
def results_dir(self) -> Path:
return self.root / "results"
@property
def configs_dir(self) -> Path:
return self.root / "configs"
def ensure(self) -> None:
for path in [
self.data_dir / "raw",
self.data_dir / "processed",
self.data_dir / "targets",
self.data_dir / "ligands",
self.data_dir / "benchmarks",
self.results_dir / "smoke_test",
self.results_dir / "demo_run",
]:
path.mkdir(parents=True, exist_ok=True)
|