def _validate(self, value):

        try:
            if value != int(value):
                raise ValueError()
            value = int(value)
        except __HOLE__:
            raise ValueError("%s must be an integer" % self.label)

        if value < self.min:
            raise ValueError("%s must be >= %i" % (self.label, self.min))

        if value > self.max:
            raise ValueError("%s must be <= %i" % (self.label, self.max))

        return value
dataset/ETHPy150Open glue-viz/glue/glue/core/simpleforms.py/IntOption._validate