def get_valid_results(df_res):
    """Splits up results into valid and invalid results.
    Based on properties computed in data.py."""
    
    # Select valid results (one pair of resized ellipses)
    cond_valid = df_res['inside'] & df_res['resized'] & (df_res['num_annot']==2)
    df_res_valid = df_res.loc[cond_valid]
    
    # Everything else is excluded/invalid 
    df_res_invalid =  df_res.loc[~cond_valid]
           
    return df_res_valid, df_res_invalid