lir.aggregation.subset module
- class lir.aggregation.subset.SubsetAggregation(aggregation_methods: list[Aggregation], category_field: str)[source]
Bases:
AggregationAggregation method that manages data categorization.
A separate aggregation method is used for each category.
- Parameters:
aggregation_methods (list[Aggregation]) – A list of methods to aggregate results by category.
category_field (str) – The name of the category field.
- report(data: AggregationData) None[source]
Report that new results are available.
The data are categorized into subsets and forwarded to the actual aggregation method.
- Parameters:
data (AggregationData) – The aggregated data to be reported.