quick-pp 0.2.57__tar.gz → 0.2.59__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.57 → quick_pp-0.2.59}/PKG-INFO +1 -1
- {quick_pp-0.2.57 → quick_pp-0.2.59}/pyproject.toml +1 -1
- {quick_pp-0.2.57 → quick_pp-0.2.59}/quick_pp/__init__.py +1 -1
- {quick_pp-0.2.57 → quick_pp-0.2.59}/quick_pp/plotter/well_log.py +42 -15
- {quick_pp-0.2.57 → quick_pp-0.2.59}/quick_pp/plotter/well_log_config.py +4 -2
- {quick_pp-0.2.57 → quick_pp-0.2.59}/.gitignore +0 -0
- {quick_pp-0.2.57 → quick_pp-0.2.59}/LICENSE +0 -0
- {quick_pp-0.2.57 → quick_pp-0.2.59}/README.md +0 -0
- {quick_pp-0.2.57 → quick_pp-0.2.59}/quick_pp/api/__init__.py +0 -0
- {quick_pp-0.2.57 → quick_pp-0.2.59}/quick_pp/api/exceptions.py +0 -0
- {quick_pp-0.2.57 → quick_pp-0.2.59}/quick_pp/api/fastapi_mlflow/__init__.py +0 -0
- {quick_pp-0.2.57 → quick_pp-0.2.59}/quick_pp/api/fastapi_mlflow/_mlflow_types.py +0 -0
- {quick_pp-0.2.57 → quick_pp-0.2.59}/quick_pp/api/fastapi_mlflow/applications.py +0 -0
- {quick_pp-0.2.57 → quick_pp-0.2.59}/quick_pp/api/fastapi_mlflow/exceptions.py +0 -0
- {quick_pp-0.2.57 → quick_pp-0.2.59}/quick_pp/api/fastapi_mlflow/predictors.py +0 -0
- {quick_pp-0.2.57 → quick_pp-0.2.59}/quick_pp/api/main.py +0 -0
- {quick_pp-0.2.57 → quick_pp-0.2.59}/quick_pp/api/mlflow_model_deployment.py +0 -0
- {quick_pp-0.2.57 → quick_pp-0.2.59}/quick_pp/api/router.py +0 -0
- {quick_pp-0.2.57 → quick_pp-0.2.59}/quick_pp/api/schemas/lithology_hc_correction.py +0 -0
- {quick_pp-0.2.57 → quick_pp-0.2.59}/quick_pp/api/schemas/lithology_ssc.py +0 -0
- {quick_pp-0.2.57 → quick_pp-0.2.59}/quick_pp/api/schemas/lithology_vsh_gr.py +0 -0
- {quick_pp-0.2.57 → quick_pp-0.2.59}/quick_pp/api/schemas/permeability_choo.py +0 -0
- {quick_pp-0.2.57 → quick_pp-0.2.59}/quick_pp/api/schemas/permeability_others.py +0 -0
- {quick_pp-0.2.57 → quick_pp-0.2.59}/quick_pp/api/schemas/porosity.py +0 -0
- {quick_pp-0.2.57 → quick_pp-0.2.59}/quick_pp/api/schemas/ressum.py +0 -0
- {quick_pp-0.2.57 → quick_pp-0.2.59}/quick_pp/api/schemas/saturation_archie.py +0 -0
- {quick_pp-0.2.57 → quick_pp-0.2.59}/quick_pp/api/schemas/saturation_b.py +0 -0
- {quick_pp-0.2.57 → quick_pp-0.2.59}/quick_pp/api/schemas/saturation_qv.py +0 -0
- {quick_pp-0.2.57 → quick_pp-0.2.59}/quick_pp/api/schemas/saturation_rw.py +0 -0
- {quick_pp-0.2.57 → quick_pp-0.2.59}/quick_pp/api/schemas/saturation_temp_grad.py +0 -0
- {quick_pp-0.2.57 → quick_pp-0.2.59}/quick_pp/api/schemas/saturation_waxman_smits.py +0 -0
- {quick_pp-0.2.57 → quick_pp-0.2.59}/quick_pp/api/services/chat.py +0 -0
- {quick_pp-0.2.57 → quick_pp-0.2.59}/quick_pp/api/services/las_handler.py +0 -0
- {quick_pp-0.2.57 → quick_pp-0.2.59}/quick_pp/api/services/lithology.py +0 -0
- {quick_pp-0.2.57 → quick_pp-0.2.59}/quick_pp/api/services/permeability.py +0 -0
- {quick_pp-0.2.57 → quick_pp-0.2.59}/quick_pp/api/services/porosity.py +0 -0
- {quick_pp-0.2.57 → quick_pp-0.2.59}/quick_pp/api/services/reservoir_summary.py +0 -0
- {quick_pp-0.2.57 → quick_pp-0.2.59}/quick_pp/api/services/saturation.py +0 -0
- {quick_pp-0.2.57 → quick_pp-0.2.59}/quick_pp/api/static/favicon.ico +0 -0
- {quick_pp-0.2.57 → quick_pp-0.2.59}/quick_pp/api/static/logo.png +0 -0
- {quick_pp-0.2.57 → quick_pp-0.2.59}/quick_pp/api/template/chat.html +0 -0
- {quick_pp-0.2.57 → quick_pp-0.2.59}/quick_pp/api/template/home.html +0 -0
- {quick_pp-0.2.57 → quick_pp-0.2.59}/quick_pp/cli.py +0 -0
- {quick_pp-0.2.57 → quick_pp-0.2.59}/quick_pp/config.py +0 -0
- {quick_pp-0.2.57 → quick_pp-0.2.59}/quick_pp/core_calibration.py +0 -0
- {quick_pp-0.2.57 → quick_pp-0.2.59}/quick_pp/fluid_type.py +0 -0
- {quick_pp-0.2.57 → quick_pp-0.2.59}/quick_pp/las_handler.py +0 -0
- {quick_pp-0.2.57 → quick_pp-0.2.59}/quick_pp/lithology/__init__.py +0 -0
- {quick_pp-0.2.57 → quick_pp-0.2.59}/quick_pp/lithology/carbonate.py +0 -0
- {quick_pp-0.2.57 → quick_pp-0.2.59}/quick_pp/lithology/multi_mineral.py +0 -0
- {quick_pp-0.2.57 → quick_pp-0.2.59}/quick_pp/lithology/sand_shale.py +0 -0
- {quick_pp-0.2.57 → quick_pp-0.2.59}/quick_pp/lithology/sand_silt_clay.py +0 -0
- {quick_pp-0.2.57 → quick_pp-0.2.59}/quick_pp/lithology/thin_beds.py +0 -0
- {quick_pp-0.2.57 → quick_pp-0.2.59}/quick_pp/machine_learning/__init__.py +0 -0
- {quick_pp-0.2.57 → quick_pp-0.2.59}/quick_pp/machine_learning/config.py +0 -0
- {quick_pp-0.2.57 → quick_pp-0.2.59}/quick_pp/machine_learning/feature_engineering.py +0 -0
- {quick_pp-0.2.57 → quick_pp-0.2.59}/quick_pp/machine_learning/mock_data/mock_data.parquet +0 -0
- {quick_pp-0.2.57 → quick_pp-0.2.59}/quick_pp/machine_learning/predict_pipeline.py +0 -0
- {quick_pp-0.2.57 → quick_pp-0.2.59}/quick_pp/machine_learning/train_pipeline.py +0 -0
- {quick_pp-0.2.57 → quick_pp-0.2.59}/quick_pp/machine_learning/utils.py +0 -0
- {quick_pp-0.2.57 → quick_pp-0.2.59}/quick_pp/objects.py +0 -0
- {quick_pp-0.2.57 → quick_pp-0.2.59}/quick_pp/permeability.py +0 -0
- {quick_pp-0.2.57 → quick_pp-0.2.59}/quick_pp/plotter/__init__.py +0 -0
- {quick_pp-0.2.57 → quick_pp-0.2.59}/quick_pp/plotter/plotter.py +0 -0
- {quick_pp-0.2.57 → quick_pp-0.2.59}/quick_pp/porosity.py +0 -0
- {quick_pp-0.2.57 → quick_pp-0.2.59}/quick_pp/qaqc.py +0 -0
- {quick_pp-0.2.57 → quick_pp-0.2.59}/quick_pp/ressum.py +0 -0
- {quick_pp-0.2.57 → quick_pp-0.2.59}/quick_pp/rock_physics/__init__.py +0 -0
- {quick_pp-0.2.57 → quick_pp-0.2.59}/quick_pp/rock_physics/geomechanics.py +0 -0
- {quick_pp-0.2.57 → quick_pp-0.2.59}/quick_pp/rock_physics/geophysics.py +0 -0
- {quick_pp-0.2.57 → quick_pp-0.2.59}/quick_pp/rock_physics/rpm.py +0 -0
- {quick_pp-0.2.57 → quick_pp-0.2.59}/quick_pp/rock_type.py +0 -0
- {quick_pp-0.2.57 → quick_pp-0.2.59}/quick_pp/saturation.py +0 -0
- {quick_pp-0.2.57 → quick_pp-0.2.59}/quick_pp/utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: quick-pp
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.59
|
|
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>
|
|
@@ -20,4 +20,4 @@ logging.getLogger("mlflow").setLevel(logging.WARNING)
|
|
|
20
20
|
|
|
21
21
|
__author__ = """Imran Fadhil"""
|
|
22
22
|
__email__ = 'imranfadhil@gmail.com'
|
|
23
|
-
__version__ = '0.2.
|
|
23
|
+
__version__ = '0.2.59' # Need to be updated manually when releasing a new version/ change in pyproject.toml
|
|
@@ -236,15 +236,6 @@ def plotly_log(well_data, well_name: str = '', depth_uom="", trace_defs: dict =
|
|
|
236
236
|
)
|
|
237
237
|
fig = add_defined_traces(fig, df, index, no_of_track, trace_defs)
|
|
238
238
|
|
|
239
|
-
# --- COAL_FLAG traces (special style, always on tracks 4-8, secondary_y=True) ---
|
|
240
|
-
if 'COAL_FLAG' in df.columns and no_of_track >= 8 and default_flags:
|
|
241
|
-
df['COAL_FLAG'] = df['COAL_FLAG'].replace({0: 1e-3, 1: 1e9}) # Cater for plotting on log scale
|
|
242
|
-
for c in [4, 5, 6, 7, 8]:
|
|
243
|
-
fig.add_trace(
|
|
244
|
-
go.Scatter(x=df['COAL_FLAG'], y=index, name='', line_width=0,
|
|
245
|
-
fill='tozerox', fillcolor='rgba(0,0,0,1)', opacity=1),
|
|
246
|
-
row=1, col=c, secondary_y=True)
|
|
247
|
-
|
|
248
239
|
# --- ROCK_FLAG_X traces (special style, always on track 7, secondary_y=False) ---
|
|
249
240
|
if 'ROCK_FLAG_0' in df.columns and no_of_track >= 7 and default_flags:
|
|
250
241
|
rock_flag_columns = [col for col in df.columns if col.startswith('ROCK_FLAG_')]
|
|
@@ -254,16 +245,52 @@ def plotly_log(well_data, well_name: str = '', depth_uom="", trace_defs: dict =
|
|
|
254
245
|
fig.update_traces(selector=dict(name='ROCK_FLAG_0'), visible=False)
|
|
255
246
|
for feature in rock_flag_columns:
|
|
256
247
|
fig.add_trace(
|
|
257
|
-
go.Scatter(
|
|
258
|
-
|
|
259
|
-
|
|
248
|
+
go.Scatter(
|
|
249
|
+
x=df[feature].replace(0, -999.25),
|
|
250
|
+
y=index,
|
|
251
|
+
line_color=COLOR_DICT[feature],
|
|
252
|
+
name=feature,
|
|
253
|
+
fill='tozerox', fillcolor=COLOR_DICT.get(feature, '#000000')
|
|
254
|
+
), row=1, col=7, secondary_y=False)
|
|
260
255
|
|
|
261
|
-
#
|
|
256
|
+
# --- COAL_FLAG traces (special style, always on tracks 4-8, secondary_y=True) ---
|
|
257
|
+
if 'COAL_FLAG' in df.columns and no_of_track >= 8 and default_flags:
|
|
258
|
+
df['COAL_FLAG'] = df['COAL_FLAG'].replace({0: 1e-3, 1: 1e9}) # Cater for plotting on log scale
|
|
259
|
+
name = 'COAL_FLAG'
|
|
260
|
+
for c in [4, 5, 6, 7, 8]:
|
|
261
|
+
fig.add_trace(
|
|
262
|
+
go.Scatter(
|
|
263
|
+
x=df['COAL_FLAG'],
|
|
264
|
+
y=index, name=name,
|
|
265
|
+
line_width=0,
|
|
266
|
+
fill='tozerox', fillcolor='rgba(0,0,0,1)', opacity=1,
|
|
267
|
+
hovertemplate=f'<b>{name}</b><extra></extra>'
|
|
268
|
+
), row=1, col=c, secondary_y=True)
|
|
269
|
+
|
|
270
|
+
# Add ZONES to hover box in each tracks if available
|
|
271
|
+
if 'ZONES' in df.columns:
|
|
272
|
+
for c in range(1, no_of_track + 1):
|
|
273
|
+
fig.add_trace(
|
|
274
|
+
go.Scatter(
|
|
275
|
+
x=np.zeros(len(df)),
|
|
276
|
+
y=index,
|
|
277
|
+
name='ZONES',
|
|
278
|
+
line={'width': 0},
|
|
279
|
+
text=df['ZONES'],
|
|
280
|
+
hovertemplate='<b>ZONES</b>: %{text}<extra></extra>',
|
|
281
|
+
), row=1, col=c, secondary_y=False)
|
|
282
|
+
|
|
283
|
+
# Add TVD to hover box in each tracks if available
|
|
262
284
|
if 'TVD' in df.columns:
|
|
263
285
|
for c in range(1, no_of_track + 1):
|
|
264
286
|
fig.add_trace(
|
|
265
|
-
go.Scatter(
|
|
266
|
-
|
|
287
|
+
go.Scatter(
|
|
288
|
+
x=df['TVD'],
|
|
289
|
+
y=index,
|
|
290
|
+
name='TVD',
|
|
291
|
+
line={'width': 0},
|
|
292
|
+
hovertemplate='<b>TVD</b>: %{x}<extra></extra>'
|
|
293
|
+
), row=1, col=c, secondary_y=False)
|
|
267
294
|
|
|
268
295
|
# Update xaxis and yaxis layout configurations
|
|
269
296
|
visible_xaxis = [col for col, trace_def in trace_defs.items() if not trace_def.get('hide_xaxis', True)]
|
|
@@ -351,7 +351,8 @@ XAXIS_DEFS = dict(
|
|
|
351
351
|
title={'text': 'PERM (mD)', 'font': {'color': COLOR_DICT['PERM'], 'size': font_size}},
|
|
352
352
|
tickfont={'color': COLOR_DICT['PERM'], 'size': font_size},
|
|
353
353
|
side='top', anchor='free', position=.91, title_standoff=.1,
|
|
354
|
-
range=[np.log10(0.1), np.log10(1e5)], type='log',
|
|
354
|
+
dtick=0.1, range=[np.log10(0.1), np.log10(1e5)], type='log',
|
|
355
|
+
tickmode='array', tickvals=np.geomspace(0.1, 1e5, 7), tickangle=-90,
|
|
355
356
|
minor_showgrid=True
|
|
356
357
|
),
|
|
357
358
|
SWT=dict(
|
|
@@ -442,7 +443,8 @@ XAXIS_DEFS = dict(
|
|
|
442
443
|
title={'text': 'CPERM (mD)', 'font': {'color': COLOR_DICT['CPERM'], 'size': font_size}},
|
|
443
444
|
tickfont={'color': COLOR_DICT['CPERM'], 'size': font_size},
|
|
444
445
|
side='top', anchor='free', position=.85, title_standoff=.1, overlaying='x5',
|
|
445
|
-
range=[np.log10(0.1), np.log10(1e5)], type='log',
|
|
446
|
+
range=[np.log10(0.1), np.log10(1e5)], type='log',
|
|
447
|
+
tickmode='array', tickvals=np.geomspace(0.1, 1e5, 7), tickangle=-90,
|
|
446
448
|
zeroline=False, showgrid=False
|
|
447
449
|
),
|
|
448
450
|
SHF=dict(
|
|
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
|
|
File without changes
|