def _setName(self, name):
    assert isinstance(name, str), 'name must be a string'
    if (name in self.valid_criteria_names):
        self.__name = name
    else:
        raise ValueError(self.error_no_criteria_found)
def _setName(self, name):
    assert isinstance(name, str), 'name must be a string'
    if (name in self.valid_criteria_names):
        self.__name = name
    else:
        raise ValueError(self.error_no_criteria_found)