Download libs/benchmark/reuse.py from QPromaQ/Docking_project: direct link, hf CLI and curl.
- Browser
- Download file 551 Bytes
-
https://huggingface.co/datasets/QPromaQ/Docking_project/resolve/main/libs/benchmark/reuse.py
- Command line
-
hf download hf://datasets/QPromaQ/Docking_project/libs/benchmark/reuse.py
-
curl -L -o reuse.py https://huggingface.co/datasets/QPromaQ/Docking_project/resolve/main/libs/benchmark/reuse.py
551 Bytes
| from __future__ import annotations | |
| from dataclasses import dataclass | |
| from pathlib import Path | |
| from typing import Iterable, List | |
| class ReuseCheck: | |
| ok: bool | |
| missing: List[str] | |
| note: str | |
| def validate_reuse_inputs(required_paths: Iterable[Path]) -> ReuseCheck: | |
| missing = [str(p) for p in required_paths if not Path(p).exists()] | |
| if missing: | |
| return ReuseCheck(ok=False, missing=missing, note="missing_required_reuse_inputs") | |
| return ReuseCheck(ok=True, missing=[], note="reuse_inputs_available") | |