def parse_ants(antstr):
    """Split apart command-line antennas into a list of baselines."""
    rv = [s.split('_') for s in antstr.split(',')]
    rv = [(int(i[:-1]), int(j[:-1]), i[-1]+j[-1]) for i,j in rv]
    return rv