コード例 #1
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)
コード例 #2
0
ファイル: OWGenExpress.py プロジェクト: r0b1n1983liu/o3env
    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)
コード例 #3
0
ファイル: OWPIPAx.py プロジェクト: nagyistoce/orange-bio
 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)
コード例 #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)