pybacktrack.create_lithology_from_components
- pybacktrack.create_lithology_from_components(components, lithologies)
Creates a combined lithology (if necessary) from multiple weighted lithologies.
- Parameters:
components (sequence of tuples) – A sequence (eg,
list) of tuples (str, float) containing a lithology name and its fraction of contribution.lithologies (dict) – A dictionary mapping lithology names to
pybacktrack.Lithologyobjects.
- Returns:
The combined lithology.
- Return type:
- Raises:
ValueError – If all fractions do not add up to 1.0.
KeyError – If a lithology name is not found in
lithologies.