def METHOD_NAME(mean_list, weights):
    """
    When mean has been replaced, use nan weight
    """
    def _unfixit(xmean, xweight):
        if xmean == FLAG_BAD_RETURN:
            return np.nan
        else:
            return xweight
    fixed_weights = [
        _unfixit(xmean, xweight) for (xmean, xweight) in zip(mean_list, weights)
    ]
    return fixed_weights