def calculate(self, c_or_x, y=None):
        if y is None:
            c = c_or_x
            hsv = c.getHSV()

            # Calculate coordinates
            x = round(hsv[2] * 220.0)
            y = round(220 - (hsv[1] * 220.0))

            # Create background color of clean color
            bgColor = Color(*hsv_to_rgb(hsv[0], 1.0, 1.0))
            self._cpp._hsvGradient.setBackgroundColor(bgColor)

            return [x, y]
        else:
            x = c_or_x
            saturation = 1.0 - (y / 220.0)
            value = x / 220.0
            hue = 360.0 / float(str(self._cpp._hueSlider.getValue()))

            color = Color(*hsv_to_rgb(hue, saturation, value))
            return color
dataset/ETHPy150Open rwl/muntjac/muntjac/addon/colorpicker/color_picker_popup.py/HSVConverter.calculate/swapped operands of `/`