Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
0c4fbf8
revisit well deletion from project handling
imranfadhil Nov 4, 2026
ade4722
improve saturation module
imranfadhil Nov 4, 2026
afe0073
corrected silent replacement of PHIT with PHIE in the workflow
imranfadhil Nov 4, 2026
a238644
improve saturation module with relevant crossplots
imranfadhil Nov 4, 2026
3ec13e3
add mica in the multi mineral module
imranfadhil Nov 4, 2026
bf6fc67
revisit dry silt rhob constraint at 2.68 g/cc
imranfadhil Nov 4, 2026
76313cd
improvise the BQv crossplot
imranfadhil Nov 4, 2026
fb8513b
improve BQv autofit with anchor on calculated y-intercept
imranfadhil Nov 4, 2026
7786430
improve interval/ lasso selection computation
imranfadhil Nov 5, 2026
2f934ad
add log based stress estimation in the standalone core data prep
imranfadhil Nov 5, 2026
67e6d00
close accordians in the left pane by default
imranfadhil Nov 5, 2026
9b8e149
add P-T fluid properteis estimation as part of hc correction
imranfadhil Nov 5, 2026
732c9c0
add mud filtrate based hc correction
imranfadhil Nov 5, 2026
f927637
improve borehole environment correction module
imranfadhil Nov 5, 2026
b3160ba
revisit multi mineral and plotting PHIT_CONSTRUCTED as a qc
imranfadhil Nov 6, 2026
59fae6a
add mobility in track 5
imranfadhil Nov 6, 2026
aebb613
change default target_mode in neuden hc correction
imranfadhil Nov 7, 2026
a5ac0d2
debug mobility track disrupting the well plot
imranfadhil Nov 7, 2026
6eff993
improve xplot listing in the right pane
imranfadhil Nov 7, 2026
62f429c
optimize multi well stick plot
imranfadhil Nov 7, 2026
7c2fda8
add log-depth plot visualization for qaqc module
imranfadhil Nov 7, 2026
d19cde4
add missing data handler
imranfadhil Nov 7, 2026
fe66f68
revisit depth conversion in las uploader and enable depth conversion …
imranfadhil Nov 8, 2026
78ee025
extend dlis uploader to handle .lis files
imranfadhil Nov 8, 2026
044cd87
debug .lis handler error
imranfadhil Nov 8, 2026
533cb19
debug successful las upload but missing from the project
imranfadhil Nov 9, 2026
30d4850
add multi well batch evaluation standalone module
imranfadhil Nov 9, 2026
b695170
debug upload wells with same UWI
imranfadhil Nov 9, 2026
b7bed7e
update plotting for multi well batch evaluation and improve imputatio…
imranfadhil Nov 9, 2026
9cb0754
Bump version to 0.3.5
imranfadhil Nov 9, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ authors:
email: "imranfadhil@gmail.com"
repository-code: "https://github.com/imranfadhil/quick_pp"
url: "https://quick-pp.readthedocs.io"
version: 0.3.4
date-released: "2026-11-03"
version: 0.3.5
date-released: "2026-11-09"
license: MIT
keywords:
- petrophysics
Expand Down Expand Up @@ -44,4 +44,4 @@ preferred-citation:
orcid: "https://orcid.org/0000-0001-9392-8083"
year: 2026
url: "https://github.com/imranfadhil/quick_pp"
version: 0.3.4
version: 0.3.5
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ This repository contains the core `quick_pp` scientific Python package, the Fast
- **Multi-Well QA/QC, Stratigraphic Normalization & Stick Plots** (`quick_pp.qaqc`, `MultiWellQaqc.svelte`, `StickPlotCanvas.svelte`):
Zone-by-zone multi-well quantile and histogram log normalization (`stratigraphic_normalization` / `normalize_by_zone`), borehole environmental and invasion corrections (`apply_environmental_corrections`), neutron-density hydrocarbon corrections, automated washout/bad-hole flagging (`badhole_flagging`), multi-well distribution & conditioning workflows, and interactive multi-well structural/stratigraphic Stick Plot cross-sections flattened on datum or formation tops.
- **High-Throughput Multi-Format Log & Ancillary Import Engine** (`quick_pp.las_handler`, `BulkImporterModal.svelte`, `BulkAncillaryImporter.svelte`):
Fast two-stage hybrid LAS 2.0/3.0, DLIS (`dlisio`), CSV, and Parquet log importer with automated mnemonic alias mapping, unit standardization, multi-run splicing & depth regularization (preserving raw missing gaps without artificial interpolation by default), and bulk ancillary data ingestion (Formation Tops, Fluid Contacts, Deviation Surveys with minimum-curvature TVD calculation, MDT/RFT Pressure Tests, Core RCA plugs, and SCAL Capillary Pressure & Relative Permeability tables).
Fast two-stage hybrid LAS 2.0/3.0, DLIS and LIS79 (`dlisio`), CSV, and Parquet log importer with automated mnemonic alias mapping, unit standardization, multi-run splicing & depth regularization (preserving raw missing gaps without artificial interpolation by default), and bulk ancillary data ingestion (Formation Tops, Fluid Contacts, Deviation Surveys with minimum-curvature TVD calculation, MDT/RFT Pressure Tests, Core RCA plugs, and SCAL Capillary Pressure & Relative Permeability tables).
- **Automated FDP & Single-Well Report Generation** (`quick_pp/app/backend/services/report.py`, `quick_pp.plotter.report_plots`, `InspectorReport.svelte`, `ReportPreviewCanvas.svelte`):
10-section Field Development Plan (`FDP_FULL`) and Single-Well CPI (`SINGLE_WELL_CPI`) report generator with publication-grade headless Matplotlib figures, grounded AI narrative synthesis and section enhancement (`executive`, `technical`, `concise`, `audit`), interactive Markdown section editing, and print-ready HTML / multi-page A4 PDF export.
- **Petrophysical Handover Package Builder** (`quick_pp.handover`, `build_handover_archive_bytes`):
Expand Down Expand Up @@ -331,6 +331,6 @@ If you use `quick_pp` in your academic research, coursework, publications, or te
publisher = {GitHub},
journal = {GitHub repository},
howpublished = {\url{https://github.com/imranfadhil/quick_pp}},
version = {0.3.4}
version = {0.3.5}
}
```
1 change: 0 additions & 1 deletion docs/api/lithology.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,3 @@ Deterministic and optimization-based mineral volume models for clastics, carbona
## Thin Beds

::: quick_pp.lithology.thin_beds

2 changes: 1 addition & 1 deletion docs/api/plotter.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

::: quick_pp.plotter.report_plots

## Multi-Format LAS / DLIS Handler (`quick_pp.las_handler`)
## Multi-Format LAS / DLIS / LIS Handler (`quick_pp.las_handler`)

::: quick_pp.las_handler

Expand Down
42 changes: 41 additions & 1 deletion docs/api/qaqc.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,45 @@

Borehole environmental corrections, neutron-density hydrocarbon corrections, bad-hole flagging, and multi-well zone-by-zone quantile/histogram normalization.

::: quick_pp.qaqc
Environmental correction outputs use distinct `*_ENV_CORR` mnemonics. Density reconstruction
has its own `RHOB_DEN_CORR` output.
They remain preview/derived curves; downstream calculations do not select them automatically.

## Hydrocarbon correction targets

The crossplot and standard invaded-zone hydrocarbon corrections default to
`target_mode="solid"`: `VSH_GR` is compared with the binary clay fraction of
solids, `Vcl / (1 - porosity)`. The workbench uses this default. Explicit
`target_mode="bulk"` retains the previous bulk-clay target and remains consistent
with density reconstruction. Changing the mode changes both the target and the
`vsh_gr` flagging criterion. Re-run the correction to update existing curves.

The solid-relative binary projection is not the same as the piecewise
sand-silt-clay (SSC) `VSH_DN` displayed in the workbench, so matching the target
does not guarantee matching SSC `VSH_DN`. Both modes assume the GR-derived
value is a suitable target; anomalous GR may invalidate that assumption.

## Invaded-zone hydrocarbon correction

The workspace HC-correction endpoint offers an optional **Standard invaded-zone**
method alongside the existing crossplot correction. It searches invaded-zone
hydrocarbon saturation `S_hi` from 0 to 1 in 0.01 increments and selects the
candidate whose corrected binary clay estimate is closest to `VSH_GR`.
The density and neutron shifts, light/heavy hydrocarbon coefficients, mud-filtrate
hydrogen index, and lithology-scaled excavation term follow the supplied method
equations. The selected saturation is returned as `SHC_INV`.

The method requires well-header `mud_filtrate_density` (g/cc) and
`mud_filtrate_salinity` (ppm), editable in the QAQC Well Header panel. Lithology
coefficient `K` defaults to 1. Density porosity is estimated from the dry-sand
density endpoint and mud-filtrate density; corrected `VSH_DN` is evaluated in the
matrix/clay/mud-filtrate crossplot triangle. These are explicit implementation
conventions where the supplied excerpts did not define `phi_D` or the exact
`VSH_DN` calculation.

This is an effective invaded-zone saturation correction, not a radial invasion
simulator: separate neutron and density investigation radii and radial saturation
profiles are not modeled. The separate “Default method” in the supplied screenshots
is not implemented because its `NFAC` and `HCORR` equations were not provided.

::: quick_pp.qaqc
8 changes: 8 additions & 0 deletions docs/api/rock_type.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,11 @@ Hydraulic Flow Unit (FZI/RQI/GHE) classification, Winland/Pittman pore throat es
## Fluid Typing & Formation Pressure Analysis (`quick_pp.fluid_type`)

::: quick_pp.fluid_type

### Dynamic P-T Fluid Properties

`estimate_fluid_properties()` estimates depth-aligned brine, live-oil, and gas
density and hydrogen-index curves from TVD, temperature/pressure profiles, and
fluid composition. Supply `temp_curve` and/or `pres_curve` to use measured well
logs instead of the synthesized gradients. Returned densities are in g/cc,
pressure is in MPa, and temperature is in °C.
9 changes: 9 additions & 0 deletions docs/community/changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## 0.3.5 (2026-11-09)
- Added a **Multi-Well Batch Evaluation** workbench to preview and compare single-well lithology, porosity, permeability, and saturation calculations by well and zone before applying selected results. Preview calculations are isolated from saved data, profiles are loaded on demand, apply validates an input fingerprint to detect stale results, and parameter snapshots are saved per zone.
- Added **Missing Data Imputation** and a depth-binned **Missing Data Matrix** to single- and multi-well QA/QC. Supported methods include mean, median, most frequent, forward/backward fill, depth-based linear interpolation, KNN, and iterative imputation; results can be saved as `_IMP` curves or replace originals while preserving full-well `_ORI` backups.
- Expanded log import support to **DLIS and LIS79 (`.lis`)** files, added uploader depth-unit conversion controls for LAS data, and improved upload reconciliation for wells sharing a UWI and cases where an upload completed without appearing in the project.
- Improved depth and curve visualization with a log-depth QA/QC plot, multi-well stick-plot performance updates, clearer crossplot selection, mobility track support, and improved curve/depth alignment in plotting and workbench views.
- Enhanced **hydrocarbon and borehole-environment corrections**, including mud-filtrate and pressure/temperature-based fluid-property inputs, revised neutron-density correction defaults, and related safeguards and curve handling.
- Refined saturation analysis with additional crossplots and improved B/Qv fitting; updated multi-mineral inversion with mica support and revised mineral constraints, plus clearer plotting of constructed porosity for QA/QC.
- Improved single-well and multi-well workflow interactions, including log-based stress estimation in core preparation, interval/lasso selection, and well deletion handling.

## 0.3.4 (2026-11-03)
- Added **Multi-Well Probabilistic Volumetric Assessment & Subsurface Risk Analysis** (`quick_pp/app/backend/services/workspace.py`, `MultiWellVolumetrics.svelte`, `VolumetricsCanvas.svelte`, `WorkflowStepper.svelte`) implementing Monte Carlo Latin Hypercube Sampling (LHS, $N \ge 10{,}000$) for STOIIP and GIIP across project wells and reservoir zones, supporting dual $S_w$-based and SHF-based (saturation-height function) modes, flexible parametric distributions (Normal, Log-Normal, Triangular, Uniform) for Area, Gross Thickness, NTG, $\phi_e$, $S_w$, $B_o/B_g$, and Recovery Factor, interactive parameter bounding, cumulative exceedance (CDF), probability density (PDF), and Tornado sensitivity ranking charts for P90 (1P/Proven), P50 (2P/Probable), P10 (3P/Possible), Mean, and Standard Deviation, and automated injection into Section 8 of FDP and Reservoir Summary reports.
- Added **Petrophysical Handover Package Import & Bi-Directional Exchange** (`quick_pp/handover.py`, `quick_pp/app/backend/services/database.py`, `HandoverImporter.svelte`, `BulkImporterModal.svelte`, `TopContextBar.svelte`, `tests/test_handover.py`) enabling end-to-end ingestion and project re-hydration from structured handover `.zip` archives (Techlog, Geolog, quick_pp), including pre-import archive inspection (`inspect_handover_archive`), manifest validation, well inventory reconciliation, and comprehensive database reconstruction of well headers, deviation surveys, continuous log curves (LAS 2.0/3.0), formation tops, fluid contacts, perforation intervals, core RCA sample point-sets (`RAW_DEPTH`, `SHIFT_M`, `CPORE`, `CPERM`), MDT/FPT formation pressure tests, and SCAL capillary pressure / relative permeability tables.
Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
- **Multi-Well QA/QC, Stratigraphic Normalization & Stick Plots** ([`quick_pp.qaqc`](api/qaqc.md)):
Zone-by-zone multi-well quantile and histogram log normalization (`stratigraphic_normalization` / `normalize_by_zone`), borehole environmental and invasion corrections (`apply_environmental_corrections`), neutron-density hydrocarbon corrections, automated washout/bad-hole flagging (`badhole_flagging`), and multi-well structural/stratigraphic Stick Plot cross-sections.
- **High-Throughput Multi-Format Log Import, Handover Packages & Automated FDP Reports** ([`quick_pp.las_handler`](api/plotter.md), [`quick_pp.handover`](api/plotter.md), [`quick_pp.plotter.report_plots`](api/plotter.md)):
Fast hybrid LAS 2.0/3.0, DLIS (`dlisio`), CSV, and Parquet ingestion with mnemonic mapping, unit standardization, and multi-run splicing; zero-friction `.zip` handover package generation (`build_handover_archive_bytes`) with LAS 2.0 exports (`~Well` headers + `~Parameter` CPI settings), Formation Tops, Fluid Contacts & Perforations (with `TVD` and `TVDSS`), Core RCA & MDT LAS point-sets, multi-tab Excel workbooks, Eclipse `SWOF` decks, and ready-to-run SLB Techlog (`import_to_techlog.py`) & Emerson Geolog (`import_to_geolog.tcl`) loader scripts; plus automated 10-section FDP & Single-Well CPI report generation with publication-grade figures and A4 PDF / print HTML export.
Fast hybrid LAS 2.0/3.0, DLIS, LIS79, CSV, and Parquet ingestion with mnemonic mapping, unit standardization, and multi-run splicing; zero-friction `.zip` handover package generation (`build_handover_archive_bytes`) with LAS 2.0 exports (`~Well` headers + `~Parameter` CPI settings), Formation Tops, Fluid Contacts & Perforations (with `TVD` and `TVDSS`), Core RCA & MDT LAS point-sets, multi-tab Excel workbooks, Eclipse `SWOF` decks, and ready-to-run SLB Techlog (`import_to_techlog.py`) & Emerson Geolog (`import_to_geolog.tcl`) loader scripts; plus automated 10-section FDP & Single-Well CPI report generation with publication-grade figures and A4 PDF / print HTML export.
- **Physics-Informed ML & Conformal Prediction** ([`quick_pp.machine_learning`](api/machine_learning.md)):
Domain physics features (`RHOMA_APP`, `AI`, Burke's `M_LITH` & `N_LITH`), locally weighted split/cross-conformal intervals (`ConformalRegressor`, `ConformalMultiOutputRegressor`), and mineral volumetric closure (`EnforceMineralSum`).

Expand Down
6 changes: 5 additions & 1 deletion docs/workflows/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ flowchart TD
MW6 --> MW7["7. FDP Report"]
end
subgraph MW_Stand["Standalone Specialized Modules"]
MW_BATCH["Multi-Well Evaluation\n(Shared single-well models)"]
MW_SCAL["SCAL & Rel-Perm\n(Swirr, Corey, LET, SWOF Deck)"]
MW_FPT["Pressure & Contacts\n(MDT/RFT Gradients, FWL/OWC/GOC)"]
MW_RT["RT Classifier\n(Discrete Rock Type Predictor)"]
Expand Down Expand Up @@ -64,6 +65,8 @@ flowchart TD

The tables below define the 1-to-1 correspondence between the SvelteKit workbench UI (`WorkflowStepper.svelte`), backend modules, and technical documentation anchors.

The right-pane crossplot selector shows only plots supported by the active single- or multi-well space. Plots relevant to the current step appear first; other plots are grouped by workflow step or standalone module. Auto follows the current step, or shows an empty state when that step has no recommended crossplot. A manual selection remains active across steps in the same space; switching spaces resets it to Auto if the plot is unavailable there. Relevant plots remain listed even when their input data is not yet available.

### Single-Well Space

| Step Category | Stepper ID | UI Component | Markdown Anchor | Primary Petrophysical Function |
Expand All @@ -88,6 +91,7 @@ The tables below define the 1-to-1 correspondence between the SvelteKit workbenc
| **Step 5** | `shf` | `MultiWellShf.svelte` | [`#mw-step-5-shf`](multi_well.md#mw-step-5-shf) | Saturation-Height Modeling (Leverett $J$ / Skelt-Harrison), fluid contacts & log reconciliation |
| **Step 6** | `volumetrics` | `MultiWellVolumetrics.svelte` | [`#mw-step-6-volumetrics`](multi_well.md#mw-step-6-volumetrics) | Probabilistic Monte Carlo LHS STOIIP/GIIP (P90/P50/P10) & Tornado |
| **Step 7** | `report` | `InspectorReport.svelte` | [`#mw-step-7-report`](multi_well.md#mw-step-7-report) | Field Development Plan (FDP) comprehensive report generation |
| **Standalone** | `batch-evaluation` | `MultiWellEvaluation.svelte` | [`#mw-standalone-batch-evaluation`](multi_well.md#mw-standalone-batch-evaluation) | Preview and apply isolated single-well calculations by well and zone |
| **Standalone** | `swirr-corr` | `MultiWellSwirr.svelte` | [`#mw-standalone-scal-relperm`](multi_well.md#mw-standalone-scal-relperm) | **SCAL & Rel-Perm**: Field Swirr fit, Brooks-Corey, LET & SWOF decks |
| **Standalone** | `fpt` | `MultiWellFpt.svelte` | [`#mw-standalone-fpt`](multi_well.md#mw-standalone-fpt) | **Pressure & Contacts**: MDT/RFT gradients, excess pressure, FWL/OWC/GOC |
| **Standalone** | `rt-classifier` | `MultiWellRtClassifierTrainer.svelte` | [`#mw-standalone-rt-classifier`](multi_well.md#mw-standalone-rt-classifier) | **RT Classifier**: Supervised classification (Random Forest / XGBoost) |
Expand All @@ -101,4 +105,4 @@ The tables below define the 1-to-1 correspondence between the SvelteKit workbenc
Covers the 7-step deterministic evaluation pipeline and the standalone Core & Pc Prep module.

- [**Multi-Well Field Evaluation Workflow**](multi_well.md):
Covers the 7-step field characterization pipeline and the 4 standalone specialized modules (SCAL & Rel-Perm, Formation Pressure & Contacts, RT Classifier, Conformal PIML).
Covers the 7-step field characterization pipeline and the 5 standalone specialized modules (Multi-Well Evaluation, SCAL & Rel-Perm, Formation Pressure & Contacts, RT Classifier, Conformal PIML).
Loading
Loading