quick-pp 0.2.56__tar.gz → 0.2.57__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.56 → quick_pp-0.2.57}/PKG-INFO +1 -1
- {quick_pp-0.2.56 → quick_pp-0.2.57}/pyproject.toml +1 -1
- {quick_pp-0.2.56 → quick_pp-0.2.57}/quick_pp/__init__.py +1 -1
- {quick_pp-0.2.56 → quick_pp-0.2.57}/quick_pp/core_calibration.py +13 -1
- {quick_pp-0.2.56 → quick_pp-0.2.57}/quick_pp/plotter/well_log.py +11 -3
- {quick_pp-0.2.56 → quick_pp-0.2.57}/quick_pp/rock_physics/geophysics.py +2 -0
- {quick_pp-0.2.56 → quick_pp-0.2.57}/quick_pp/utils.py +1 -0
- {quick_pp-0.2.56 → quick_pp-0.2.57}/.gitignore +0 -0
- {quick_pp-0.2.56 → quick_pp-0.2.57}/LICENSE +0 -0
- {quick_pp-0.2.56 → quick_pp-0.2.57}/README.md +0 -0
- {quick_pp-0.2.56 → quick_pp-0.2.57}/quick_pp/api/__init__.py +0 -0
- {quick_pp-0.2.56 → quick_pp-0.2.57}/quick_pp/api/exceptions.py +0 -0
- {quick_pp-0.2.56 → quick_pp-0.2.57}/quick_pp/api/fastapi_mlflow/__init__.py +0 -0
- {quick_pp-0.2.56 → quick_pp-0.2.57}/quick_pp/api/fastapi_mlflow/_mlflow_types.py +0 -0
- {quick_pp-0.2.56 → quick_pp-0.2.57}/quick_pp/api/fastapi_mlflow/applications.py +0 -0
- {quick_pp-0.2.56 → quick_pp-0.2.57}/quick_pp/api/fastapi_mlflow/exceptions.py +0 -0
- {quick_pp-0.2.56 → quick_pp-0.2.57}/quick_pp/api/fastapi_mlflow/predictors.py +0 -0
- {quick_pp-0.2.56 → quick_pp-0.2.57}/quick_pp/api/main.py +0 -0
- {quick_pp-0.2.56 → quick_pp-0.2.57}/quick_pp/api/mlflow_model_deployment.py +0 -0
- {quick_pp-0.2.56 → quick_pp-0.2.57}/quick_pp/api/router.py +0 -0
- {quick_pp-0.2.56 → quick_pp-0.2.57}/quick_pp/api/schemas/lithology_hc_correction.py +0 -0
- {quick_pp-0.2.56 → quick_pp-0.2.57}/quick_pp/api/schemas/lithology_ssc.py +0 -0
- {quick_pp-0.2.56 → quick_pp-0.2.57}/quick_pp/api/schemas/lithology_vsh_gr.py +0 -0
- {quick_pp-0.2.56 → quick_pp-0.2.57}/quick_pp/api/schemas/permeability_choo.py +0 -0
- {quick_pp-0.2.56 → quick_pp-0.2.57}/quick_pp/api/schemas/permeability_others.py +0 -0
- {quick_pp-0.2.56 → quick_pp-0.2.57}/quick_pp/api/schemas/porosity.py +0 -0
- {quick_pp-0.2.56 → quick_pp-0.2.57}/quick_pp/api/schemas/ressum.py +0 -0
- {quick_pp-0.2.56 → quick_pp-0.2.57}/quick_pp/api/schemas/saturation_archie.py +0 -0
- {quick_pp-0.2.56 → quick_pp-0.2.57}/quick_pp/api/schemas/saturation_b.py +0 -0
- {quick_pp-0.2.56 → quick_pp-0.2.57}/quick_pp/api/schemas/saturation_qv.py +0 -0
- {quick_pp-0.2.56 → quick_pp-0.2.57}/quick_pp/api/schemas/saturation_rw.py +0 -0
- {quick_pp-0.2.56 → quick_pp-0.2.57}/quick_pp/api/schemas/saturation_temp_grad.py +0 -0
- {quick_pp-0.2.56 → quick_pp-0.2.57}/quick_pp/api/schemas/saturation_waxman_smits.py +0 -0
- {quick_pp-0.2.56 → quick_pp-0.2.57}/quick_pp/api/services/chat.py +0 -0
- {quick_pp-0.2.56 → quick_pp-0.2.57}/quick_pp/api/services/las_handler.py +0 -0
- {quick_pp-0.2.56 → quick_pp-0.2.57}/quick_pp/api/services/lithology.py +0 -0
- {quick_pp-0.2.56 → quick_pp-0.2.57}/quick_pp/api/services/permeability.py +0 -0
- {quick_pp-0.2.56 → quick_pp-0.2.57}/quick_pp/api/services/porosity.py +0 -0
- {quick_pp-0.2.56 → quick_pp-0.2.57}/quick_pp/api/services/reservoir_summary.py +0 -0
- {quick_pp-0.2.56 → quick_pp-0.2.57}/quick_pp/api/services/saturation.py +0 -0
- {quick_pp-0.2.56 → quick_pp-0.2.57}/quick_pp/api/static/favicon.ico +0 -0
- {quick_pp-0.2.56 → quick_pp-0.2.57}/quick_pp/api/static/logo.png +0 -0
- {quick_pp-0.2.56 → quick_pp-0.2.57}/quick_pp/api/template/chat.html +0 -0
- {quick_pp-0.2.56 → quick_pp-0.2.57}/quick_pp/api/template/home.html +0 -0
- {quick_pp-0.2.56 → quick_pp-0.2.57}/quick_pp/cli.py +0 -0
- {quick_pp-0.2.56 → quick_pp-0.2.57}/quick_pp/config.py +0 -0
- {quick_pp-0.2.56 → quick_pp-0.2.57}/quick_pp/fluid_type.py +0 -0
- {quick_pp-0.2.56 → quick_pp-0.2.57}/quick_pp/las_handler.py +0 -0
- {quick_pp-0.2.56 → quick_pp-0.2.57}/quick_pp/lithology/__init__.py +0 -0
- {quick_pp-0.2.56 → quick_pp-0.2.57}/quick_pp/lithology/carbonate.py +0 -0
- {quick_pp-0.2.56 → quick_pp-0.2.57}/quick_pp/lithology/multi_mineral.py +0 -0
- {quick_pp-0.2.56 → quick_pp-0.2.57}/quick_pp/lithology/sand_shale.py +0 -0
- {quick_pp-0.2.56 → quick_pp-0.2.57}/quick_pp/lithology/sand_silt_clay.py +0 -0
- {quick_pp-0.2.56 → quick_pp-0.2.57}/quick_pp/lithology/thin_beds.py +0 -0
- {quick_pp-0.2.56 → quick_pp-0.2.57}/quick_pp/machine_learning/__init__.py +0 -0
- {quick_pp-0.2.56 → quick_pp-0.2.57}/quick_pp/machine_learning/config.py +0 -0
- {quick_pp-0.2.56 → quick_pp-0.2.57}/quick_pp/machine_learning/feature_engineering.py +0 -0
- {quick_pp-0.2.56 → quick_pp-0.2.57}/quick_pp/machine_learning/mock_data/mock_data.parquet +0 -0
- {quick_pp-0.2.56 → quick_pp-0.2.57}/quick_pp/machine_learning/predict_pipeline.py +0 -0
- {quick_pp-0.2.56 → quick_pp-0.2.57}/quick_pp/machine_learning/train_pipeline.py +0 -0
- {quick_pp-0.2.56 → quick_pp-0.2.57}/quick_pp/machine_learning/utils.py +0 -0
- {quick_pp-0.2.56 → quick_pp-0.2.57}/quick_pp/objects.py +0 -0
- {quick_pp-0.2.56 → quick_pp-0.2.57}/quick_pp/permeability.py +0 -0
- {quick_pp-0.2.56 → quick_pp-0.2.57}/quick_pp/plotter/__init__.py +0 -0
- {quick_pp-0.2.56 → quick_pp-0.2.57}/quick_pp/plotter/plotter.py +0 -0
- {quick_pp-0.2.56 → quick_pp-0.2.57}/quick_pp/plotter/well_log_config.py +0 -0
- {quick_pp-0.2.56 → quick_pp-0.2.57}/quick_pp/porosity.py +0 -0
- {quick_pp-0.2.56 → quick_pp-0.2.57}/quick_pp/qaqc.py +0 -0
- {quick_pp-0.2.56 → quick_pp-0.2.57}/quick_pp/ressum.py +0 -0
- {quick_pp-0.2.56 → quick_pp-0.2.57}/quick_pp/rock_physics/__init__.py +0 -0
- {quick_pp-0.2.56 → quick_pp-0.2.57}/quick_pp/rock_physics/geomechanics.py +0 -0
- {quick_pp-0.2.56 → quick_pp-0.2.57}/quick_pp/rock_physics/rpm.py +0 -0
- {quick_pp-0.2.56 → quick_pp-0.2.57}/quick_pp/rock_type.py +0 -0
- {quick_pp-0.2.56 → quick_pp-0.2.57}/quick_pp/saturation.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.57
|
|
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.57' # Need to be updated manually when releasing a new version/ change in pyproject.toml
|
|
@@ -488,10 +488,22 @@ def autocorrelate_core_depth(df):
|
|
|
488
488
|
right_on='DEPTH_CORRECTED',
|
|
489
489
|
how='left'
|
|
490
490
|
)
|
|
491
|
+
|
|
492
|
+
# Remove original depths if being corrected
|
|
493
|
+
ori_core_ids = df_corrected['CORE_ID'].dropna().unique()
|
|
494
|
+
shifted_core_ids = df_corrected['CORE_ID_SHIFTED'].dropna().unique()
|
|
495
|
+
|
|
496
|
+
mask_shifted = df_corrected['CORE_ID'].isin(shifted_core_ids)
|
|
497
|
+
mask_ori = df_corrected['CORE_ID_SHIFTED'].isin(ori_core_ids)
|
|
498
|
+
|
|
499
|
+
df_corrected.loc[mask_shifted, ['CORE_ID', 'CPORE', 'CPERM']] = np.nan
|
|
500
|
+
df_corrected.loc[mask_ori, ['CORE_ID', 'CPORE', 'CPERM']] = df_corrected.loc[
|
|
501
|
+
mask_ori, ['CORE_ID_SHIFTED', 'CPORE_SHIFTED', 'CPERM_SHIFTED']].values
|
|
502
|
+
|
|
491
503
|
return_df = pd.concat([return_df, df_corrected])
|
|
492
504
|
|
|
493
|
-
final_summary_df = pd.DataFrame()
|
|
494
505
|
# After the loop, combine all summaries into a single DataFrame
|
|
506
|
+
final_summary_df = pd.DataFrame()
|
|
495
507
|
if shift_summaries:
|
|
496
508
|
final_summary_df = pd.concat(shift_summaries, ignore_index=True)
|
|
497
509
|
|
|
@@ -35,7 +35,7 @@ def add_defined_traces(fig, df, index, no_of_track, trace_defs, **kwargs):
|
|
|
35
35
|
|
|
36
36
|
style = trace_def.get('style', {})
|
|
37
37
|
trace_args = dict(
|
|
38
|
-
x=df[col],
|
|
38
|
+
x=round(df[col], 3) if df[col].dtype == 'float64' else df[col],
|
|
39
39
|
y=index,
|
|
40
40
|
name=col,
|
|
41
41
|
**kwargs
|
|
@@ -249,14 +249,22 @@ def plotly_log(well_data, well_name: str = '', depth_uom="", trace_defs: dict =
|
|
|
249
249
|
if 'ROCK_FLAG_0' in df.columns and no_of_track >= 7 and default_flags:
|
|
250
250
|
rock_flag_columns = [col for col in df.columns if col.startswith('ROCK_FLAG_')]
|
|
251
251
|
# Remove 'ROCK_FLAG_0' if it already exists as a trace in fig.data
|
|
252
|
-
|
|
253
|
-
|
|
252
|
+
if any(trace.name == 'ROCK_FLAG_0' for trace in fig.data):
|
|
253
|
+
rock_flag_columns.remove('ROCK_FLAG_0')
|
|
254
|
+
fig.update_traces(selector=dict(name='ROCK_FLAG_0'), visible=False)
|
|
254
255
|
for feature in rock_flag_columns:
|
|
255
256
|
fig.add_trace(
|
|
256
257
|
go.Scatter(x=df[feature], y=index, line_color=COLOR_DICT[feature], name=feature,
|
|
257
258
|
fill='tozerox', fillcolor=COLOR_DICT.get(feature, '#000000')),
|
|
258
259
|
row=1, col=7, secondary_y=False)
|
|
259
260
|
|
|
261
|
+
# Add TVD to each tracks if available
|
|
262
|
+
if 'TVD' in df.columns:
|
|
263
|
+
for c in range(1, no_of_track + 1):
|
|
264
|
+
fig.add_trace(
|
|
265
|
+
go.Scatter(x=df['TVD'], y=index, name='TVD', line={'width': 0}),
|
|
266
|
+
row=1, col=c, secondary_y=False)
|
|
267
|
+
|
|
260
268
|
# Update xaxis and yaxis layout configurations
|
|
261
269
|
visible_xaxis = [col for col, trace_def in trace_defs.items() if not trace_def.get('hide_xaxis', True)]
|
|
262
270
|
layout_dict = {f'xaxis{x.xaxis[1:]}': v for k, v in xaxis_defs.items() for x in fig.data
|
|
@@ -174,7 +174,9 @@ def convert_md_to_tvd(df, well_coords):
|
|
|
174
174
|
Returns:
|
|
175
175
|
pandas.DataFrame: DataFrame with TVD column added.
|
|
176
176
|
"""
|
|
177
|
+
# Filter temp_df to only the range covered by the survey
|
|
177
178
|
dev_survey = wpp.deviation(md=well_coords['md'], inc=well_coords['incl'], azi=well_coords['azim'])
|
|
179
|
+
df = df[df.DEPTH.between(well_coords['md'].min(), well_coords['md'].max())]
|
|
178
180
|
df['TVD'] = dev_survey.minimum_curvature().resample(df.DEPTH.values).depth
|
|
179
181
|
|
|
180
182
|
# Get list of columns to resample
|
|
@@ -426,6 +426,7 @@ def get_tvd(df, well_coords):
|
|
|
426
426
|
|
|
427
427
|
dev_survey = wpp.deviation(md=well_coords['md'], inc=well_coords['incl'], azi=well_coords['azim'])
|
|
428
428
|
# Resample the survey at the exact MD points from the log data
|
|
429
|
+
df = df[df.DEPTH.between(well_coords['md'].min(), well_coords['md'].max())]
|
|
429
430
|
tvd = dev_survey.minimum_curvature().resample(df['DEPTH'].values).depth
|
|
430
431
|
return tvd
|
|
431
432
|
|
|
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
|