Complete P3 F3 evaluation and Windows execution
Implement the frozen F3 protocol, nested LOWO, posterior label banks, ablations, diagnostics, checkpoint validation and full-volume inference. Record the negative G-C result: improvement at 1/4 wells, coverage80 52.38% and coverage90 60.91%, with unchanged thresholds and historical P2 results. Add native Windows logging, the RTX 3060 environment lock, detached runs, and an audited dashboard-lock recovery that preserves frozen scientific code. Update report.html, the plan and agent guidance with completed P3 status. Archive thesis sources under code_thesis with identical Git blobs and record the original-output audit without committing large data or model artifacts. Validation: 129 tests passed, 13 skipped; CUDA end-to-end smoke passed; completion audit verified 1,320 checkpoint/prediction pairs, 28 registration bundles and all 649 interior volume inlines. Scripts 04 and 09 were not rerun. Co-authored-by: Codex <codex@openai.com>
This commit is contained in:
42
code_thesis/plot_porosity_maps.py
Normal file
42
code_thesis/plot_porosity_maps.py
Normal file
@@ -0,0 +1,42 @@
|
||||
# plot_porosity_maps.py
|
||||
# ------------------------------------------------------------
|
||||
# Vẽ bản đồ porosity tại một thời gian (ms) hoặc chỉ số mẫu
|
||||
import numpy as np
|
||||
import matplotlib.pyplot as plt
|
||||
|
||||
NPZ_VOL = "outputs/porosity_volume_600_1100ms.npz"
|
||||
# chọn 1 trong 2 cách:
|
||||
TARGET_MS = 900.0 # thời gian (ms) trong [600,1100]
|
||||
TARGET_INDEX = None # hoặc chỉ số sample trong [0, L-1]
|
||||
|
||||
def descale(y_scaled, lo, hi):
|
||||
return y_scaled * (hi - lo) + lo
|
||||
|
||||
def main():
|
||||
D = np.load(NPZ_VOL)
|
||||
vol = D["vol"] # (nI,nX,L) scaled
|
||||
il = D["ilines"]; xl = D["xlines"]; t = D["times_ms"]
|
||||
y_lo = float(D["y_lo"]); y_hi = float(D["y_hi"])
|
||||
|
||||
if TARGET_INDEX is None:
|
||||
idx = int(np.argmin(np.abs(t - TARGET_MS)))
|
||||
title = f"Porosity map {t[idx]:.1f} ms"
|
||||
else:
|
||||
idx = int(TARGET_INDEX)
|
||||
title = f"Porosity map index {idx} (~{t[idx]:.1f} ms)"
|
||||
|
||||
slice_scaled = vol[:, :, idx]
|
||||
slice_orig = descale(slice_scaled, y_lo, y_hi)
|
||||
|
||||
plt.figure(figsize=(7,6))
|
||||
im = plt.imshow(slice_orig.T, origin="lower", aspect="auto",
|
||||
extent=[il.min(), il.max(), xl.min(), xl.max()])
|
||||
plt.colorbar(im, label="Porosity")
|
||||
plt.xlabel("Inline")
|
||||
plt.ylabel("Crossline")
|
||||
plt.title(title)
|
||||
plt.tight_layout()
|
||||
plt.show()
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Reference in New Issue
Block a user