def remove_nans(arr_with_nans, *otherarrs):
    nanfree_arrs = []
    for arr in otherarrs:
        nanfree_arrs.append(arr[(~ np.isnan(arr_with_nans))])
    arr_without_nans = arr_with_nans[(~ np.isnan(arr_with_nans))]
    return (arr_without_nans, nanfree_arrs)
def remove_nans(arr_with_nans, *otherarrs):
    nanfree_arrs = []
    for arr in otherarrs:
        nanfree_arrs.append(arr[(~ np.isnan(arr_with_nans))])
    arr_without_nans = arr_with_nans[(~ np.isnan(arr_with_nans))]
    return (arr_without_nans, nanfree_arrs)