Download libs/utils/paths.py from QPromaQ/Docking_project: direct link, hf CLI and curl.
- Browser
- Download file 868 Bytes
-
https://huggingface.co/datasets/QPromaQ/Docking_project/resolve/main/libs/utils/paths.py
- Command line
-
hf download hf://datasets/QPromaQ/Docking_project/libs/utils/paths.py
-
curl -L -o paths.py https://huggingface.co/datasets/QPromaQ/Docking_project/resolve/main/libs/utils/paths.py
868 Bytes
| from __future__ import annotations | |
| from dataclasses import dataclass | |
| from pathlib import Path | |
| class ProjectPaths: | |
| """Resolved project paths for data/results/config management.""" | |
| root: Path | |
| def data_dir(self) -> Path: | |
| return self.root / "data" | |
| def results_dir(self) -> Path: | |
| return self.root / "results" | |
| 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) | |