Files
ML-Porosity/paper_gp/make_bib.py
lamlvh eff975cc96 Address simulated GP referee reports: E1-E6 and A1-A9 (exploratory), theory scope, per-well field and anchor-error tables, scorer v1.1, paper_gp and response letter
Experiments declared and hashed before computing (docs/research/gp-review-*.md). The SMC-mean gain holds against a practitioner tie, all budgets and a same-target point tie, but is lost at anchor errors of 2 ms or less and reverses with per-well bulk error. No locked protocol, verdict or threshold changed.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-17 11:20:54 +00:00

22 lines
787 B
Python

#!/usr/bin/env python3
"""Write paper_gp/refs.bib from ../paper/refs.bib without the internal `annote` fields (submission copy)."""
import re, pathlib
src = pathlib.Path(__file__).resolve().parent.parent / "paper" / "refs.bib"
t = src.read_text(encoding="utf-8"); out = []; i = 0
pat = re.compile(r"\n\s*annote\s*=\s*", re.I)
while True:
m = pat.search(t, i)
if not m: out.append(t[i:]); break
out.append(t[i:m.start()]); j = m.end()
if t[j] == "{":
d = 0
while True:
d += (t[j] == "{") - (t[j] == "}"); j += 1
if d == 0: break
else:
j = t.index('"', j + 1) + 1
while t[j] in " \t": j += 1
if t[j] == ",": j += 1
i = j
(pathlib.Path(__file__).parent / "refs.bib").write_text("".join(out), encoding="utf-8")