@weight.setter
    def weight(self, value):
        if value is not None:
            value = float(value)
        self._weight = value