def apply_scale(self, value):
    if (self.scale == 1):
        return value
    return int((value * self.scale))
def apply_scale(self, value):
    if (self.scale == 1):
        return value
    return int((value * self.scale))