def METHOD_NAME(self, limits):
    """Change the list of allowed values."""
    self.forward, self.reverse = self.mapping(limits)
    Parameter.METHOD_NAME(self, limits)
    # 'value in limits' expression will break when reverse contains numpy array
    curVal = self.value()
    if len(self.reverse[0]) > 0 and not any(fn.eq(curVal, limVal) for limVal in self.reverse[0]):
        self.setValue(self.reverse[0][0])