def mode_ts(ec, mode="", ts=None):
    """
    Get string for the mode
    :param str ec: extract or collapse
    :param str mode: "paleo" or "chron" mode
    :param list ts: Time series (for collapse)
    :return str phrase: Phrase
    """
    phrase = ""
    if ec == "extract":
        if mode=="chron":
            phrase = "extracting chronData..."
        else:
            phrase = "extracting paleoData..."
    elif ec == "collapse":
        if ts[0]["mode"] == "chronData":
            phrase = "collapsing chronData"
        else:
            phrase = "collapsing paleoData..."
    return phrase
Get string for the mode
    :param str ec: extract or collapse
    :param str mode: "paleo" or "chron" mode
    :param list ts: Time series (for collapse)
    :return str phrase: Phrase