def get_peak_data(run):
    """
    Useful for extracing all peak info from newly created GcRuns or Datums in service of integration corrections.
    :param run: GcRun object
    :return: list, list; the peak areas and retention times for all components of the run
    """

    pas = [peak.pa for peak in run.peaks]
    rts = [peak.rt for peak in run.peaks]

    assert len(pas) == len(rts), "get_peak_data() produced lists of uneven lengths."

    return (pas, rts)