def __lt__(self, other):
        col = self.par.sortColumn()
        if col in [TIMEPOINT_COLUMN, REPLICATE_COLUMN]:
            left = tfloat(self.text(col))
            right = tfloat(other.text(col))
            if isinstance(left, float) and isinstance(right, float):
                return left < right

        return QTreeWidgetItem.__lt__(self, other)
Exemple #2
0
    def __lt__(self, other):
        col = self.par.sortColumn()
        if col in [TIMEPOINT_COLUMN, REPLICATE_COLUMN]:
            left = tfloat(self.text(col))
            right = tfloat(other.text(col))
            if isinstance(left, float) and isinstance(right, float):
                return left < right

        return QTreeWidgetItem.__lt__(self, other)
Exemple #3
0
 def __lt__(self, o1):
     col = self.par.sortColumn()
     if col in [8, 9]:  # WARNING: hardcoded column numbers
         return tfloat(self.text(col)) < tfloat(o1.text(col))
     else:
         return QTreeWidgetItem.__lt__(self, o1)
Exemple #4
0
 def __lt__(self, o1):
     col = self.par.sortColumn()
     if col in [8, 9]:  # WARNING: hardcoded column numbers
         return tfloat(self.text(col)) < tfloat(o1.text(col))
     else:
         return QTreeWidgetItem.__lt__(self, o1)