BaseAggregator#
- class ctapipe.monitoring.aggregator.BaseAggregator(*args: t.Any, **kwargs: t.Any)[source]#
Bases:
ComponentBase class for aggregators that compute statistics and histograms over chunks of data.
Aggregators use a chunking strategy to divide input tables and compute aggregated statistics and histograms for each chunk.
Attributes Summary
The chunking strategy to use for dividing data into chunks.
Methods Summary
__call__(table[, masked_elements_of_sample, ...])Divide table into chunks and compute aggregated statistic values or histograms.
Attributes Documentation
- chunking_type#
The chunking strategy to use for dividing data into chunks.. Possible values: []
Methods Documentation
- __call__(table, masked_elements_of_sample=None, col_name='image') Table[source]#
Divide table into chunks and compute aggregated statistic values or histograms.
- Parameters:
- tableastropy.table.Table
table with event-wise data of shape (n_events, *data_dimensions), event IDs and timestamps of shape (n_events, )
- masked_elements_of_samplendarray, optional
boolean array of masked elements of shape (*data_dimensions) that are not available for processing
- col_namestring
column name in the table containing the event-wise data to aggregate
- Returns:
- astropy.table.Table
table containing the start and end values as timestamps and event IDs as well as the aggregated statistic values or histograms for each chunk