def anomaly_str_to_ts_and_score(istr):
    """ Parses a string that contains a timestamp and an anomaly score.

    Output looks like this (a tuple of floats):
    (1584452172.12, 0.0071348165601308475)

    Args:
        istr(str): looks like this: 1584452172.12; 0.0071348165601308475
    """
    semicolons_ind = istr.find(';')
    if semicolons_ind > 0:
        stamp_str = istr[:semicolons_ind]
        score_str = istr[semicolons_ind + 1:]
        timestamp = float(stamp_str)
        score = float(score_str)
        res = timestamp, score
    else:
        res = None, None
    return res