P2 diagnosis on dev, P3 dev experiments, lock protocol_p3
- P2: SMC tie posterior (numpy + torch), RML/soft-DTW losses, bank training, D2 synthetic generator, scripts 09-13, protocol_p2 (locked) and its outcome (G-B failed; H1 not rejected, H3 rejected, H4 not rejected). - Diagnosis on dev realizations 900/901 only (scripts 14-17, run_p3_dev.sh): posterior screen, SMC stability (P = 1024, K = 1), sigma_a misspecification stress and training, H3 with the SMC posterior, F3 placement on sigma_post. - protocol_p3: H2 split into H2a (posterior-mean labels vs point ties) and H2b (RML vs posterior mean as a function of sigma_post); H3 descriptive only; sigma_a arm; new D2 config d2_synth_p3.yaml; main grid on realizations 8-15. Locked by configs/protocol_p3.sha256 and tag protocol-p3. - runlog: per-run logs and runtime index (logs/index.csv). - Docs: plan §12 items 10-11, theory, technical overview, report; wording aligned with Gunning & Glinsky (2006): the tie posterior is not claimed as new. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -13,7 +13,7 @@ PICKS = GI / "Wells/Well_picks_Volve_v1.dat"
|
||||
CFG = yaml.safe_load((REPO_ROOT / "configs/d3_volve.yaml").read_text())
|
||||
VSP = volve_root() / CFG["well_logs_dir"]
|
||||
CUBE = volve_root() / CFG["cube"]
|
||||
pytestmark = pytest.mark.skipif(not GI.exists(), reason="thiếu data/Volve/Geophysical_Interpretations")
|
||||
pytestmark = pytest.mark.skipif(not GI.exists(), reason="missing data/Volve/Geophysical_Interpretations")
|
||||
|
||||
|
||||
@pytest.fixture(scope="module")
|
||||
@@ -53,16 +53,16 @@ def test_well_picks(picks):
|
||||
assert deep.groupby("well").md.nunique().min() >= 6
|
||||
|
||||
|
||||
@pytest.mark.skipif(not VSP.exists(), reason="thiếu data/Volve/Well_logs_pr_WELL")
|
||||
@pytest.mark.skipif(not VSP.exists(), reason="missing data/Volve/Well_logs_pr_WELL")
|
||||
def test_checkshot_md_reference(picks):
|
||||
"""F-15 A: checkshot ghi MD từ MSL, picks lấy TWT từ chính checkshot này nên khớp 0 ms khi MD đã quy về RKB."""
|
||||
"""F-15 A: the checkshot records MD from MSL and the picks take their TWT from this same checkshot, so they match to 0 ms once MD is referenced to RKB."""
|
||||
cs = read_checkshot(VSP / "15_9-F-15 A/08.VSP_VELOCITY/TZV_TIME_CHECKSHOT_1.ASC")
|
||||
p = picks[(picks.well == "NO 15/9-F-15 A") & picks.twt_ms.notna() & picks.md.between(cs.md.min(), cs.md.max())]
|
||||
assert len(p) >= 5
|
||||
assert np.abs(p.twt_ms - np.interp(p.md, cs.md, cs.twt_ms)).max() < 0.5
|
||||
|
||||
|
||||
@pytest.mark.skipif(not VSP.exists(), reason="thiếu data/Volve/Well_logs_pr_WELL")
|
||||
@pytest.mark.skipif(not VSP.exists(), reason="missing data/Volve/Well_logs_pr_WELL")
|
||||
def test_f11t2_picks_vs_nivsp(picks):
|
||||
cs = read_checkshot(VSP / "15_9-F-11 T2/08.VSP_VELOCITY/TZV_TIME_CHECKSHOT_1.ASC")
|
||||
p = picks[(picks.well == "NO 15/9-F-11 T2") & picks.twt_ms.notna() & picks.md.between(cs.md.min(), cs.md.max())]
|
||||
@@ -70,10 +70,10 @@ def test_f11t2_picks_vs_nivsp(picks):
|
||||
assert np.abs(p.twt_ms - np.interp(p.md, cs.md, cs.twt_ms)).max() < 7
|
||||
|
||||
|
||||
@pytest.mark.skipif(not CUBE.exists(), reason="thiếu cube ST10010")
|
||||
@pytest.mark.skipif(not CUBE.exists(), reason="missing ST10010 cube")
|
||||
def test_volve_cube(hugin):
|
||||
"""Byte 215 = 3 không phải scalar thời gian hợp lệ; segyio vẫn nhân delrt với nó nên t0 = 12 ms, đúng là 4 ms
|
||||
(EBCDIC C11). Cube thiếu 26 trace ở rìa nên phải đọc theo bảng IL/XL từ header."""
|
||||
"""Byte 215 = 3 is not a valid time scalar; segyio still multiplies delrt by it, giving t0 = 12 ms instead of the correct
|
||||
4 ms (EBCDIC C11). The cube lacks 26 edge traces, so it must be read via the IL/XL table from the headers."""
|
||||
with SeismicCube(CUBE) as c:
|
||||
assert (c.times_ms[0], c.times_ms[-1], c.dt_ms) == (4.0, 3400.0, 4.0)
|
||||
assert (c.ilines[0], c.ilines[-1], c.xlines[0], c.xlines[-1]) == (9961, 10361, 1961, 2680)
|
||||
|
||||
Reference in New Issue
Block a user