def update_color(self, isThisUs, new_rank, new_max_rank, new_ghosted,
                     new_customcolor):
        """ update_color(isThisUs: bool,
                         new_rank, new_max_rank: int) -> None

        If necessary, update the colors of this version node based on
        who owns the node and new ranks

        NOTE: if username changes during execution, this might break.
        """
        if (new_rank == self.rank and new_max_rank == self.max_rank and
            new_ghosted == self.ghosted and
            new_customcolor == self.custom_color):
            # nothing changed
            return
        self.setGhosted(new_ghosted)
        self.custom_color = new_customcolor
        self.rank = new_rank
        self.max_rank = new_max_rank
        if not self.ghosted:
            if self.custom_color is not None:
                configuration = get_vistrails_configuration()
                sat_from_rank = not configuration.check(
                        'fixedCustomVersionColorSaturation')
                brush = QtGui.QBrush(QtGui.QColor.fromRgb(*self.custom_color))
            else:
                if isThisUs:
                    brush = CurrentTheme.VERSION_USER_BRUSH
                else:
                    brush = CurrentTheme.VERSION_OTHER_BRUSH
                sat_from_rank = True
            if sat_from_rank:
                sat = float(new_rank+1) / new_max_rank
                (h, s, v, a) = brush.color().getHsvF()
                newHsv = (h, s*sat, v+(v-1.0)*(1-sat), a)
                brush = QtGui.QBrush(brush)
                brush.setColor(QtGui.QColor.fromHsvF(*newHsv))
            self.versionBrush = brush
        self.update()
dataset/ETHPy150Open VisTrails/VisTrails/vistrails/gui/version_view.py/QGraphicsVersionItem.update_color/swapped operands of `-`