'Keep only conditions related to the currently visualized attributes'

def add_relevant_selections(self, old_selection_conditions):

    for (name, value) in old_selection_conditions.items():
        if (name in self.attributes):
            self.selection_conditions[name] = value
