split_by_peaks#

split_by_peaks(kbl, abstract=False, collapse_directions=True)[source]#

Collect pathways with the same 2D resonance.

Parameters:
  • kbl (Iterable[Pathway | DressedPathway]) – Iterable of pathways.

  • abstract (bool) – Splits by subbranches instead of individual peaks. Looks at peaks independent of \(J_i\).

  • collapse_directions (bool) – Assigns positive- and negative-frequency coherences to the same peak.

Returns:

Dictionary from Pathway.peak or Pathway.abstract_peak to lists of pathways.

Return type:

Dict[Tuple[str, str], List[AbstractPathway]]