Docking_project / libs /utils /paths.py
QPromaQ's picture
Upload folder using huggingface_hub
c289d87 verified
Raw
History Blame Contribute Delete
868 Bytes
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)