HeldReadings

petrophys.preprocessing.quality.HeldReadings

Also available as petrophys.preprocessing.HeldReadings

class HeldReadings(
depth,
masks,
runs,
min_run,
tolerance=0.0,
depth_unit='',
curves=<factory>,
)[source]

Held-reading flags for several curves of one well.

Parameters:
depth

Depth of every sample checked (the whole well, or the requested window).

Type:

ndarray

masks

Per-curve boolean flags from held_reading_mask().

Type:

dict of str to numpy.ndarray

runs

One row per flagged run: curve, top and bottom (depths of the first and last flagged sample), samples (flagged samples) and value (the held reading).

Type:

DataFrame

min_run

Run length used.

Type:

int

tolerance

Repeat tolerance used.

Type:

float

depth_unit

Depth unit of the well.

Type:

str

Attributes

shallowest_depth

Shallowest flagged depth over all checked curves, or None.

curves

Methods

any

Return True where at least one checked curve is flagged.

summary

Return one row per checked curve.

curves: list
any()[source]

Return True where at least one checked curve is flagged.

Return type:

ndarray

property shallowest_depth: float | None

Shallowest flagged depth over all checked curves, or None.

summary()[source]

Return one row per checked curve.

Columns: held_samples, runs, top and bottom (shallowest and deepest flagged depth, NaN when none) and longest_run (flagged samples in the longest run).