def mask_value(vector, val):
    """
    Build a boolean mask around a certain value in the vector.
    
    Args:
        vector: 1-d ndarray of values
        val: values to mask on

    Returns:
        1-d boolean ndarray
    """
    return vector == val
