"""Project paths. No absolute paths: everything is resolved from the repository root or from the environment variables ML_POROSITY_F3_ROOT / ML_POROSITY_VOLVE_ROOT / ML_POROSITY_NLOG_ROOT / ML_POROSITY_OUTPUTS.""" from __future__ import annotations import os from pathlib import Path REPO_ROOT = Path(__file__).resolve().parents[1] def f3_root() -> Path: """F3 survey directory (containing `.survey`).""" env = os.environ.get("ML_POROSITY_F3_ROOT") return Path(env) if env else REPO_ROOT / "data" / "F3_Demo_2023" / "F3_Demo_2023" def f3_wells_dir() -> Path: return f3_root() / "Rawdata" / "Well_data" / "All_wells_RawData" / "All_wells_RawData" def f3_segy() -> Path: return f3_root() / "Rawdata" / "F3_entire.segy" def volve_root() -> Path: """Volve directory downloaded from the Data Village (Geophysical_Interpretations/, Seismic/, ...).""" env = os.environ.get("ML_POROSITY_VOLVE_ROOT") return Path(env) if env else REPO_ROOT / "data" / "Volve" def nlog_root() -> Path: """Public NLOG LAS and TD files for the F3 wells (downloaded per docs/research/f3-nlog-inventory.xlsx).""" env = os.environ.get("ML_POROSITY_NLOG_ROOT") return Path(env) if env else REPO_ROOT / "data" / "NLOG" def outputs_dir() -> Path: env = os.environ.get("ML_POROSITY_OUTPUTS") p = Path(env) if env else REPO_ROOT / "outputs" p.mkdir(parents=True, exist_ok=True) return p