quick-pp 0.2.5__tar.gz → 0.2.51__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {quick_pp-0.2.5 → quick_pp-0.2.51}/PKG-INFO +2 -2
- {quick_pp-0.2.5 → quick_pp-0.2.51}/pyproject.toml +2 -1
- {quick_pp-0.2.5 → quick_pp-0.2.51}/quick_pp/api/mlflow_model_deployment.py +0 -11
- {quick_pp-0.2.5 → quick_pp-0.2.51}/quick_pp/las_handler.py +0 -20
- {quick_pp-0.2.5 → quick_pp-0.2.51}/quick_pp/machine_learning/predict_pipeline.py +0 -22
- {quick_pp-0.2.5 → quick_pp-0.2.51}/quick_pp/machine_learning/train_pipeline.py +0 -16
- {quick_pp-0.2.5 → quick_pp-0.2.51}/quick_pp/porosity.py +2 -4
- quick_pp-0.2.5/AUTHORS.rst +0 -13
- {quick_pp-0.2.5 → quick_pp-0.2.51}/.gitignore +0 -0
- {quick_pp-0.2.5 → quick_pp-0.2.51}/LICENSE +0 -0
- {quick_pp-0.2.5 → quick_pp-0.2.51}/README.md +0 -0
- {quick_pp-0.2.5 → quick_pp-0.2.51}/quick_pp/__init__.py +0 -0
- {quick_pp-0.2.5 → quick_pp-0.2.51}/quick_pp/api/__init__.py +0 -0
- {quick_pp-0.2.5 → quick_pp-0.2.51}/quick_pp/api/exceptions.py +0 -0
- {quick_pp-0.2.5 → quick_pp-0.2.51}/quick_pp/api/fastapi_mlflow/__init__.py +0 -0
- {quick_pp-0.2.5 → quick_pp-0.2.51}/quick_pp/api/fastapi_mlflow/_mlflow_types.py +0 -0
- {quick_pp-0.2.5 → quick_pp-0.2.51}/quick_pp/api/fastapi_mlflow/applications.py +0 -0
- {quick_pp-0.2.5 → quick_pp-0.2.51}/quick_pp/api/fastapi_mlflow/exceptions.py +0 -0
- {quick_pp-0.2.5 → quick_pp-0.2.51}/quick_pp/api/fastapi_mlflow/predictors.py +0 -0
- {quick_pp-0.2.5 → quick_pp-0.2.51}/quick_pp/api/main.py +0 -0
- {quick_pp-0.2.5 → quick_pp-0.2.51}/quick_pp/api/router.py +0 -0
- {quick_pp-0.2.5 → quick_pp-0.2.51}/quick_pp/api/schemas/lithology_hc_correction.py +0 -0
- {quick_pp-0.2.5 → quick_pp-0.2.51}/quick_pp/api/schemas/lithology_ssc.py +0 -0
- {quick_pp-0.2.5 → quick_pp-0.2.51}/quick_pp/api/schemas/lithology_vsh_gr.py +0 -0
- {quick_pp-0.2.5 → quick_pp-0.2.51}/quick_pp/api/schemas/permeability_choo.py +0 -0
- {quick_pp-0.2.5 → quick_pp-0.2.51}/quick_pp/api/schemas/permeability_others.py +0 -0
- {quick_pp-0.2.5 → quick_pp-0.2.51}/quick_pp/api/schemas/porosity.py +0 -0
- {quick_pp-0.2.5 → quick_pp-0.2.51}/quick_pp/api/schemas/ressum.py +0 -0
- {quick_pp-0.2.5 → quick_pp-0.2.51}/quick_pp/api/schemas/saturation_archie.py +0 -0
- {quick_pp-0.2.5 → quick_pp-0.2.51}/quick_pp/api/schemas/saturation_b.py +0 -0
- {quick_pp-0.2.5 → quick_pp-0.2.51}/quick_pp/api/schemas/saturation_qv.py +0 -0
- {quick_pp-0.2.5 → quick_pp-0.2.51}/quick_pp/api/schemas/saturation_rw.py +0 -0
- {quick_pp-0.2.5 → quick_pp-0.2.51}/quick_pp/api/schemas/saturation_temp_grad.py +0 -0
- {quick_pp-0.2.5 → quick_pp-0.2.51}/quick_pp/api/schemas/saturation_waxman_smits.py +0 -0
- {quick_pp-0.2.5 → quick_pp-0.2.51}/quick_pp/api/services/chat.py +0 -0
- {quick_pp-0.2.5 → quick_pp-0.2.51}/quick_pp/api/services/las_handler.py +0 -0
- {quick_pp-0.2.5 → quick_pp-0.2.51}/quick_pp/api/services/lithology.py +0 -0
- {quick_pp-0.2.5 → quick_pp-0.2.51}/quick_pp/api/services/permeability.py +0 -0
- {quick_pp-0.2.5 → quick_pp-0.2.51}/quick_pp/api/services/porosity.py +0 -0
- {quick_pp-0.2.5 → quick_pp-0.2.51}/quick_pp/api/services/reservoir_summary.py +0 -0
- {quick_pp-0.2.5 → quick_pp-0.2.51}/quick_pp/api/services/saturation.py +0 -0
- {quick_pp-0.2.5 → quick_pp-0.2.51}/quick_pp/api/static/favicon.ico +0 -0
- {quick_pp-0.2.5 → quick_pp-0.2.51}/quick_pp/api/static/logo.png +0 -0
- {quick_pp-0.2.5 → quick_pp-0.2.51}/quick_pp/api/template/chat.html +0 -0
- {quick_pp-0.2.5 → quick_pp-0.2.51}/quick_pp/api/template/home.html +0 -0
- {quick_pp-0.2.5 → quick_pp-0.2.51}/quick_pp/cli.py +0 -0
- {quick_pp-0.2.5 → quick_pp-0.2.51}/quick_pp/config.py +0 -0
- {quick_pp-0.2.5 → quick_pp-0.2.51}/quick_pp/core_calibration.py +0 -0
- {quick_pp-0.2.5 → quick_pp-0.2.51}/quick_pp/fluid_type.py +0 -0
- {quick_pp-0.2.5 → quick_pp-0.2.51}/quick_pp/lithology/__init__.py +0 -0
- {quick_pp-0.2.5 → quick_pp-0.2.51}/quick_pp/lithology/carbonate.py +0 -0
- {quick_pp-0.2.5 → quick_pp-0.2.51}/quick_pp/lithology/multi_mineral.py +0 -0
- {quick_pp-0.2.5 → quick_pp-0.2.51}/quick_pp/lithology/sand_shale.py +0 -0
- {quick_pp-0.2.5 → quick_pp-0.2.51}/quick_pp/lithology/sand_silt_clay.py +0 -0
- {quick_pp-0.2.5 → quick_pp-0.2.51}/quick_pp/lithology/thin_beds.py +0 -0
- {quick_pp-0.2.5 → quick_pp-0.2.51}/quick_pp/machine_learning/__init__.py +0 -0
- {quick_pp-0.2.5 → quick_pp-0.2.51}/quick_pp/machine_learning/config.py +0 -0
- {quick_pp-0.2.5 → quick_pp-0.2.51}/quick_pp/machine_learning/feature_engineering.py +0 -0
- {quick_pp-0.2.5 → quick_pp-0.2.51}/quick_pp/machine_learning/mock_data/mock_data.parquet +0 -0
- {quick_pp-0.2.5 → quick_pp-0.2.51}/quick_pp/machine_learning/utils.py +0 -0
- {quick_pp-0.2.5 → quick_pp-0.2.51}/quick_pp/objects.py +0 -0
- {quick_pp-0.2.5 → quick_pp-0.2.51}/quick_pp/permeability.py +0 -0
- {quick_pp-0.2.5 → quick_pp-0.2.51}/quick_pp/plotter/__init__.py +0 -0
- {quick_pp-0.2.5 → quick_pp-0.2.51}/quick_pp/plotter/plotter.py +0 -0
- {quick_pp-0.2.5 → quick_pp-0.2.51}/quick_pp/plotter/well_log.py +0 -0
- {quick_pp-0.2.5 → quick_pp-0.2.51}/quick_pp/plotter/well_log_config.py +0 -0
- {quick_pp-0.2.5 → quick_pp-0.2.51}/quick_pp/plotter/xplots.py +0 -0
- {quick_pp-0.2.5 → quick_pp-0.2.51}/quick_pp/qaqc.py +0 -0
- {quick_pp-0.2.5 → quick_pp-0.2.51}/quick_pp/ressum.py +0 -0
- {quick_pp-0.2.5 → quick_pp-0.2.51}/quick_pp/rock_physics/__init__.py +0 -0
- {quick_pp-0.2.5 → quick_pp-0.2.51}/quick_pp/rock_physics/geomechanics.py +0 -0
- {quick_pp-0.2.5 → quick_pp-0.2.51}/quick_pp/rock_physics/geophysics.py +0 -0
- {quick_pp-0.2.5 → quick_pp-0.2.51}/quick_pp/rock_physics/rpm.py +0 -0
- {quick_pp-0.2.5 → quick_pp-0.2.51}/quick_pp/rock_type.py +0 -0
- {quick_pp-0.2.5 → quick_pp-0.2.51}/quick_pp/saturation.py +0 -0
- {quick_pp-0.2.5 → quick_pp-0.2.51}/quick_pp/utils.py +0 -0
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: quick-pp
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.51
|
|
4
4
|
Summary: Python package to assist in providing quick-look/ preliminary petrophysical estimation.
|
|
5
5
|
Project-URL: Homepage, https://github.com/imranfadhil/quick_pp
|
|
6
6
|
Author-email: Imran Fadhil <imranfadhil@gmail.com>
|
|
7
7
|
License-Expression: MIT
|
|
8
|
-
License-File: AUTHORS.rst
|
|
9
8
|
License-File: LICENSE
|
|
10
9
|
Keywords: analysis,geoscience,log,petrophysics,quick_pp,well
|
|
11
10
|
Classifier: Development Status :: 2 - Pre-Alpha
|
|
@@ -27,6 +26,7 @@ Requires-Dist: python-multipart
|
|
|
27
26
|
Requires-Dist: ruptures
|
|
28
27
|
Requires-Dist: salib==1.5.1
|
|
29
28
|
Requires-Dist: scikit-learn
|
|
29
|
+
Requires-Dist: setuptools<81
|
|
30
30
|
Requires-Dist: statsmodels
|
|
31
31
|
Requires-Dist: welly
|
|
32
32
|
Description-Content-Type: text/markdown
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "quick-pp"
|
|
7
|
-
version = "0.2.
|
|
7
|
+
version = "0.2.51"
|
|
8
8
|
description = "Python package to assist in providing quick-look/ preliminary petrophysical estimation."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = "MIT"
|
|
@@ -41,6 +41,7 @@ dependencies = [
|
|
|
41
41
|
"ruptures",
|
|
42
42
|
"SALib==1.5.1",
|
|
43
43
|
"scikit-learn",
|
|
44
|
+
"setuptools<81",
|
|
44
45
|
"statsmodels",
|
|
45
46
|
"welly",
|
|
46
47
|
]
|
|
@@ -10,11 +10,6 @@ from mlflow.pyfunc import load_model
|
|
|
10
10
|
import mlflow.tracking as mlflow_tracking
|
|
11
11
|
from importlib import resources
|
|
12
12
|
|
|
13
|
-
# # Uncomment below 3 lines to run >> if __name__ == "__main__"
|
|
14
|
-
# import os
|
|
15
|
-
# import sys
|
|
16
|
-
# sys.path.append(os.getcwd())
|
|
17
|
-
|
|
18
13
|
from quick_pp.api.fastapi_mlflow.applications import build_app
|
|
19
14
|
from quick_pp.machine_learning.utils import get_model_info, run_mlflow_server
|
|
20
15
|
from quick_pp import logger
|
|
@@ -94,9 +89,3 @@ except Exception as e:
|
|
|
94
89
|
|
|
95
90
|
duration = round((datetime.now() - start_time).total_seconds() / 60, 3)
|
|
96
91
|
logger.info(f"Completed mounting {model_count} models in {duration} minutes")
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
if __name__ == '__main__':
|
|
100
|
-
import uvicorn
|
|
101
|
-
|
|
102
|
-
uvicorn.run("quick_pp.api.mlflow_model_deployment:app", host='0.0.0.0', port=5555, reload=False)
|
|
@@ -5,11 +5,6 @@ import numpy as np
|
|
|
5
5
|
import pandas as pd
|
|
6
6
|
import mmap
|
|
7
7
|
import welly
|
|
8
|
-
import welly.las
|
|
9
|
-
|
|
10
|
-
# # Uncomment to run module as a standalone script
|
|
11
|
-
# import sys
|
|
12
|
-
# sys.path.append(os.getcwd())
|
|
13
8
|
|
|
14
9
|
from quick_pp import logger
|
|
15
10
|
|
|
@@ -314,18 +309,3 @@ def export_to_las(well_data, well_name, folder='', vars_units=None):
|
|
|
314
309
|
# Write to LAS format
|
|
315
310
|
well_path = os.path.join(folder, f"{well_name}.las")
|
|
316
311
|
las.write(well_path)
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
if __name__ == '__main__':
|
|
320
|
-
from tkinter import Tk, filedialog
|
|
321
|
-
|
|
322
|
-
root = Tk()
|
|
323
|
-
file_objects = filedialog.askopenfiles(title='Choose well Log ASCII Standard (LAS) files to be combined',
|
|
324
|
-
filetypes=(('LAS Files', '*.LAS *.las'), ('All Files', '*.*')),
|
|
325
|
-
mode='rb')
|
|
326
|
-
root.destroy()
|
|
327
|
-
if file_objects:
|
|
328
|
-
# Test read_las_file function
|
|
329
|
-
merged_df, _ = read_las_files(file_objects)
|
|
330
|
-
fname = 'well_df.csv'
|
|
331
|
-
merged_df.to_csv(fname)
|
|
@@ -5,10 +5,6 @@ from mlflow.pyfunc import load_model
|
|
|
5
5
|
import mlflow.tracking as mlflow_tracking
|
|
6
6
|
from tqdm import tqdm
|
|
7
7
|
|
|
8
|
-
# # Uncomment below 2 lines to run >> if __name__ == "__main__"
|
|
9
|
-
# import sys
|
|
10
|
-
# sys.path.append(os.getcwd())
|
|
11
|
-
|
|
12
8
|
from quick_pp.machine_learning.config import MODELLING_CONFIG, RAW_FEATURES
|
|
13
9
|
from quick_pp.machine_learning.feature_engineering import generate_fe_features
|
|
14
10
|
from quick_pp.machine_learning.utils import get_latest_registered_models, unique_id, run_mlflow_server
|
|
@@ -150,21 +146,3 @@ def predict_pipeline(
|
|
|
150
146
|
pred_df = postprocess_data(pred_df)
|
|
151
147
|
save_predictions(pred_df, output_file_name, plot=plot_predictions)
|
|
152
148
|
logger.info("Prediction pipeline completed successfully")
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
if __name__ == "__main__":
|
|
156
|
-
import argparse
|
|
157
|
-
|
|
158
|
-
parser = argparse.ArgumentParser(description="Prediction pipeline")
|
|
159
|
-
parser.add_argument("--model-config", type=str, required=True, help="Path to model config")
|
|
160
|
-
parser.add_argument("--data", type=str, required=True, help="Path to input data parquet file")
|
|
161
|
-
parser.add_argument("--output", type=str, default='test', help="Path to save predictions parquet file")
|
|
162
|
-
args = parser.parse_args()
|
|
163
|
-
|
|
164
|
-
# Set up MLflow
|
|
165
|
-
os.makedirs('data/output', exist_ok=True)
|
|
166
|
-
|
|
167
|
-
logger.info(f"Model config: {args.model_config}")
|
|
168
|
-
logger.info(f"Data hash: {args.data}")
|
|
169
|
-
|
|
170
|
-
predict_pipeline(args.model_config, args.data, args.output)
|
|
@@ -8,10 +8,6 @@ import mlflow.sklearn as mlflow_sklearn
|
|
|
8
8
|
from mlflow.models.signature import infer_signature
|
|
9
9
|
import importlib.util
|
|
10
10
|
|
|
11
|
-
# # Uncomment below 3 lines to run >> if __name__ == "__main__"
|
|
12
|
-
# import sys
|
|
13
|
-
# sys.path.append(os.getcwd())
|
|
14
|
-
|
|
15
11
|
from quick_pp.machine_learning.config import MODELLING_CONFIG
|
|
16
12
|
from quick_pp.machine_learning.feature_engineering import generate_fe_features
|
|
17
13
|
from quick_pp.machine_learning.utils import run_mlflow_server
|
|
@@ -204,15 +200,3 @@ def train_pipeline(model_config: str, data_hash: str, env: str = 'local'):
|
|
|
204
200
|
model, "model", signature=signature, input_example=X_test.sample(5),
|
|
205
201
|
registered_model_name=reg_model_name)
|
|
206
202
|
logger.info(f"Model logged and registered as: {reg_model_name}")
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
if __name__ == "__main__":
|
|
210
|
-
|
|
211
|
-
# Set up folders
|
|
212
|
-
os.makedirs('./mlruns', exist_ok=True)
|
|
213
|
-
os.makedirs('data/input', exist_ok=True)
|
|
214
|
-
|
|
215
|
-
# Example usage
|
|
216
|
-
data_hash = "x2x2" # Update with your hash for your data in the 'data/input/' folder
|
|
217
|
-
model_config = "carbonate" # Update with your model config
|
|
218
|
-
train_pipeline(model_config, data_hash)
|
|
@@ -143,7 +143,7 @@ def density_porosity(rhob, rho_matrix, rho_fluid: float = 1.0):
|
|
|
143
143
|
return phi_d
|
|
144
144
|
|
|
145
145
|
|
|
146
|
-
def dt_matrix(vsand=0,
|
|
146
|
+
def dt_matrix(vsand=0, vclay=0, vcalc=0, vdolo=0, vheavy=0,
|
|
147
147
|
dt_sand: float = 0, dt_silt: float = 0, dt_clay: float = 0,
|
|
148
148
|
dt_calc: float = 0, dt_dolo: float = 0, dt_heavy: float = 0):
|
|
149
149
|
"""Estimate average matrix sonic transit time based on dry sand, dry silt dry calcite and
|
|
@@ -151,7 +151,6 @@ def dt_matrix(vsand=0, vsilt=0, vclay=0, vcalc=0, vdolo=0, vheavy=0,
|
|
|
151
151
|
|
|
152
152
|
Args:
|
|
153
153
|
vsand (float): Volume of sand.
|
|
154
|
-
vsilt (float): Volume of silt.
|
|
155
154
|
vclay (float): Volume of clay.
|
|
156
155
|
vcalc (float): Volume of calcite.
|
|
157
156
|
vdolo (float): Volume of dolomite.
|
|
@@ -169,12 +168,11 @@ def dt_matrix(vsand=0, vsilt=0, vclay=0, vcalc=0, vdolo=0, vheavy=0,
|
|
|
169
168
|
logger.debug("Calculating matrix sonic transit time from mineral volumes")
|
|
170
169
|
minerals_log_value = Config.MINERALS_LOG_VALUE
|
|
171
170
|
dt_sand = dt_sand or minerals_log_value['DTC_QUARTZ']
|
|
172
|
-
dt_silt = dt_silt or minerals_log_value['DTC_SILT']
|
|
173
171
|
dt_clay = dt_clay or minerals_log_value['DTC_SHALE']
|
|
174
172
|
dt_calc = dt_calc or minerals_log_value['DTC_CALCITE']
|
|
175
173
|
dt_dolo = dt_dolo or minerals_log_value['DTC_DOLOMITE']
|
|
176
174
|
|
|
177
|
-
dt_matrix = (vsand * dt_sand +
|
|
175
|
+
dt_matrix = (vsand * dt_sand + vclay * dt_clay +
|
|
178
176
|
vcalc * dt_calc + vdolo * dt_dolo + vheavy * dt_heavy)
|
|
179
177
|
logger.debug(f"Matrix sonic transit time range: {dt_matrix.min():.1f} - {dt_matrix.max():.1f} us/ft")
|
|
180
178
|
return dt_matrix
|
quick_pp-0.2.5/AUTHORS.rst
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|