IntervalsCollection#
- class geoassistant.drillholes.IntervalsCollection.IntervalsCollection(name=None)[source]#
Bases:
DrillholeDataCollection[IntervalsCollection,Interval],IntervalsCollectionPropertiesA collection of Interval objects with filtering and querying utilities.
Subsetter methods return new lists of Interval objects and never mutate the original collection.
- calculateJointFrequencyFromDiscontinuities(method, considered_types=('J', 'FJ'))[source]#
Assigns FF to intervals based on its registered LoggedDiscontinuitiesCollection.
- Return type:
None
- createParameterHistogram(parameter_id, frequency_type='meters', savepath=None)[source]#
- Return type:
None
- getParameterRepresentativeValue(parameter_id, statistic='average')[source]#
- Return type:
Optional[float]
- getParameterRepresentativeValueByMetadataCategory(parameter_id, metadata_key, statistic='average')[source]#
- Return type:
Dict[Any,Optional[float]]
- getSubsetFromParameterRange(parameter_id, parameter_range, include_start=False, include_end=False)[source]#
Return intervals whose parameter value falls within a given range.
This method filters the collection by evaluating the value associated with
parameter_idfor each interval and selecting those that lie within the specified numeric bounds.Open bounds can be expressed using
None.- Parameters:
parameter_id (
str) – Identifier of the parameter to evaluate.parameter_range (
List[Optional[float]]) – A two-element list[min, max]defining the range. UseNoneto indicate an open lower or upper bound.include_start (
bool) – Whether the lower bound is inclusive.include_end (
bool) – Whether the upper bound is inclusive.
- Return type:
List[Interval]- Returns:
A list of matching
Intervalobjects.
See also
getSubsetFromParameterValue getSubsetFromBounds
- getSubsetFromParameterValue(parameter_id, value)[source]#
Returns a subset of intervals matching a specific parameter value.
This method filters the collection based on the value associated with the specified parameter identifier and returns the matching intervals.
- Parameters:
parameter_id (str) – Identifier of the parameter used for filtering.
value (Any) – Value used as the filter criterion.
- Returns:
List of intervals matching the specified parameter value.
- Return type:
List[Interval]
- inheritMetadataToSubset(subset)[source]#
Internal hook to transfer metadata to subset. Subclasses may override.
- Return type:
None
- classmethod readIntervalsCsvFile(source, from_key, to_key, id_key=None, hole_id=None, intervals_name=None, drillholes=None)[source]#
- Return type: