teehr.metrics.bootstrap_funcs.partition_metrics_by_bootstrap#
- partition_metrics_by_bootstrap(metrics: List[MetricsBasemodel]) Tuple[List[MetricsBasemodel], Dict[tuple, List[MetricsBasemodel]]][source]#
Split metrics into non-bootstrap and bootstrap-sharing groups.
- Returns:
no_boot (
list) – Metrics without a bootstrap config.boot_groups (
dict) – Mapping of group key → list of metrics that can share samples. Singleton groups (len==1) are included so callers can treat all bootstrap metrics uniformly.