Spaces:
Sleeping
Sleeping
File size: 440 Bytes
978fed5 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | """Utility functions for mutagenicity pipeline."""
from pathlib import Path
RANDOM_STATE = 42
WORKSPACE = Path(__file__).parent
# Data paths
def get_data_path() -> Path:
"""Return path to Mutagenicity CSV (handles alternate filenames)."""
for name in ["Mutagenicity_N6512.csv", "Mutagenicity_N6512 2.csv"]:
p = WORKSPACE / name
if p.exists():
return p
return WORKSPACE / "Mutagenicity_N6512.csv"
|