well-log-toolkit 0.1.141__py3-none-any.whl → 0.1.142__py3-none-any.whl

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.
@@ -1626,18 +1626,19 @@ class Property(PropertyOperationsMixin):
1626
1626
  # No valid values, return stats for current mask
1627
1627
  return self._compute_discrete_stats(mask, gross_thickness, precision)
1628
1628
 
1629
- # Calculate parent thickness for fraction calculation in child groups
1629
+ # Group by each unique value
1630
1630
  depth_array = self.depth
1631
1631
  values_array = self.values
1632
- parent_intervals = compute_intervals(depth_array)
1633
- parent_valid = mask & ~np.isnan(values_array)
1634
- parent_thickness = float(np.sum(parent_intervals[parent_valid]))
1632
+ full_intervals = compute_intervals(depth_array)
1635
1633
 
1636
- # Group by each unique value
1637
1634
  result = {}
1638
1635
  for val in unique_vals:
1639
1636
  sub_mask = mask & (current_filter_values == val)
1640
1637
 
1638
+ # Calculate thickness for THIS group specifically (not the parent)
1639
+ group_valid = sub_mask & ~np.isnan(values_array)
1640
+ group_thickness = float(np.sum(full_intervals[group_valid]))
1641
+
1641
1642
  # Create readable key with label if available
1642
1643
  if current_filter.type == 'discrete':
1643
1644
  int_val = int(val)
@@ -1659,7 +1660,7 @@ class Property(PropertyOperationsMixin):
1659
1660
  key = f"{current_filter.name}_{val:.2f}"
1660
1661
 
1661
1662
  result[key] = self._recursive_discrete_group(
1662
- filter_idx + 1, sub_mask, parent_thickness, precision
1663
+ filter_idx + 1, sub_mask, group_thickness, precision
1663
1664
  )
1664
1665
 
1665
1666
  return result
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: well-log-toolkit
3
- Version: 0.1.141
3
+ Version: 0.1.142
4
4
  Summary: Fast LAS file processing with lazy loading and filtering for well log analysis
5
5
  Author-email: Kristian dF Kollsgård <kkollsg@gmail.com>
6
6
  License: MIT
@@ -3,13 +3,13 @@ well_log_toolkit/exceptions.py,sha256=X_fzC7d4yaBFO9Vx74dEIB6xmI9Agi6_bTU3MPxn6k
3
3
  well_log_toolkit/las_file.py,sha256=Tj0mRfX1aX2s6uug7BBlY1m_mu3G50EGxHGzD0eEedE,53876
4
4
  well_log_toolkit/manager.py,sha256=VIARJLkYhxqxgTqfVfAAZU6AVsAPkQWPOUE6RNGnIdY,110558
5
5
  well_log_toolkit/operations.py,sha256=z8j8fGBOwoJGUQFy-Vawjq9nm3OD_dUt0oaNh8yuG7o,18515
6
- well_log_toolkit/property.py,sha256=A4PTZe-RbuX_QvGbnJ_5gRqFG8b_kiXhsIDSqOVtSbM,85218
6
+ well_log_toolkit/property.py,sha256=sMA4sfcI_qXg4L9rdL19gmkzPEyPa_3X7LAFdJNZ6Jk,85224
7
7
  well_log_toolkit/regression.py,sha256=JDcRxaODJnFikAdPJyTq8eUV7iY0vCDmvnGufqlojxs,31625
8
8
  well_log_toolkit/statistics.py,sha256=_huPMbv2H3o9ezunjEM94mJknX5wPK8V4nDv2lIZZRw,16814
9
9
  well_log_toolkit/utils.py,sha256=O2KPq4htIoUlL74V2zKftdqqTjRfezU9M-568zPLme0,6866
10
10
  well_log_toolkit/visualization.py,sha256=nnpmFmbj44TbP0fsnLMR1GaKRkqKCEpI6Fd8Cp0oqBc,204716
11
11
  well_log_toolkit/well.py,sha256=Aav5Y-rui8YsJdvk7BFndNPUu1O9mcjwDApAGyqV9kw,104535
12
- well_log_toolkit-0.1.141.dist-info/METADATA,sha256=KpQ04YlmVzT1IF6vyXzVkyzNmiQRWYHH0fPAWkWXGT0,61388
13
- well_log_toolkit-0.1.141.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
14
- well_log_toolkit-0.1.141.dist-info/top_level.txt,sha256=BMOo7OKLcZEnjo0wOLMclwzwTbYKYh31I8RGDOGSBdE,17
15
- well_log_toolkit-0.1.141.dist-info/RECORD,,
12
+ well_log_toolkit-0.1.142.dist-info/METADATA,sha256=6Lvy02zTkolrANhxaWVTUY0l5HHqhbmRjlOyebp9fC4,61388
13
+ well_log_toolkit-0.1.142.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
14
+ well_log_toolkit-0.1.142.dist-info/top_level.txt,sha256=BMOo7OKLcZEnjo0wOLMclwzwTbYKYh31I8RGDOGSBdE,17
15
+ well_log_toolkit-0.1.142.dist-info/RECORD,,