Add M1: OCR hub import, WITSML, labels T1-T3, T4 questions, trial raters, draft protocol

- OCR: match the colleague's full-set Dataset Hub export to the DDRs by content
  (3,059/3,066 pages) and QC it against the HTML (CER 2.40%, exact 0.9181).
- WITSML parser and formation tops: 21 DDR wellbores with time logs, 1,384
  reports; WITSML 15/9-F-15 S is DDR 15/9-F-15.
- Deterministic labels T1-T3 (configs/labels.yaml), 1,662 T4 questions with SQL,
  pandas and raw-XML answers in full agreement.
- Trial label validation by three blind LLM raters (not an author or expert audit)
  and rater agreement script; draft protocol_v1 (not locked): split by well.
- Literature notes and BibTeX; docs, report and run_m1.sh synchronised.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-17 08:34:35 +00:00
parent a3c175638f
commit 17916650a5
37 changed files with 11098 additions and 415 deletions

View File

@@ -3,8 +3,8 @@
python scripts/00_data_manifest.py # create/update data_manifest/volve_dia.json
python scripts/00_data_manifest.py --check # check only; exit 1 on a missing file or a hash mismatch
Only the subtrees in SUBTREES are hashed (~20 GB, mostly WITSML); the rest of data/Volve (well logs, seismic) is
not read by this project.
Only the subtrees in SUBTREES and the single files in FILES are hashed (~20 GB, mostly WITSML); the rest of
data/Volve (well logs, seismic) is not read by this project.
"""
from __future__ import annotations
@@ -22,6 +22,8 @@ from volve_dia.paths import REPO_ROOT, volve_root
MANIFEST = REPO_ROOT / "data_manifest" / "volve_dia.json"
DESCRIPTION = "Volve data village (Equinor and the Volve licence partners), CC BY-NC-SA 4.0"
SUBTREES = ["Well_technical_data", "Reports", "WITSML Realtime drilling data"]
#: Single files read from outside the subtrees: the formation tops (scripts/06_parse_witsml.py).
FILES = ["Geophysical_Interpretations/Wells/Well_picks_Volve_v1.dat"]
def sha256(path: Path, chunk: int = 1 << 22) -> str:
@@ -33,7 +35,8 @@ def sha256(path: Path, chunk: int = 1 << 22) -> str:
def scan(root: Path) -> dict[str, dict]:
files = sorted(p for sub in SUBTREES for p in (root / sub).rglob("*") if p.is_file())
files = sorted([p for sub in SUBTREES for p in (root / sub).rglob("*") if p.is_file()]
+ [root / f for f in FILES])
with ThreadPoolExecutor(max_workers=8) as ex:
digests = list(ex.map(sha256, files))
return {
@@ -48,7 +51,7 @@ def main() -> int:
args = ap.parse_args()
root = volve_root()
missing_dirs = [s for s in SUBTREES if not (root / s).is_dir()]
missing_dirs = [s for s in SUBTREES if not (root / s).is_dir()] + [f for f in FILES if not (root / f).is_file()]
if missing_dirs:
print(f"missing under {root}: {missing_dirs}")
return 1
@@ -69,6 +72,7 @@ def main() -> int:
"dataset": DESCRIPTION,
"root": root.relative_to(REPO_ROOT).as_posix() if root.is_relative_to(REPO_ROOT) else str(root),
"subtrees": SUBTREES,
"files_outside_subtrees": FILES,
"created_utc": datetime.now(timezone.utc).isoformat(timespec="seconds"),
"n_files": len(current),
"total_bytes": sum(v["size_bytes"] for v in current.values()),