

def getter(self, widget):
    if (self.mapping is not None):
        return self.mapping[0](widget.value())
    elif (self.value_range is not None):
        (imin, imax) = (widget.minimum(), widget.maximum())
        (vmin, vmax) = self.value_range
        return ((((widget.value() - imin) / (imax - imin)) * (vmax - vmin)) + vmin)
    else:
        return widget.value()

dataset/ETHPy150Open glue-viz/glue/glue/utils/qt/widget_properties.py ValueProperty.getter/original