當前位置: 首頁>>代碼示例>>Python>>正文


Python Strand.deleteLater方法代碼示例

本文整理匯總了Python中cadnano.strand.Strand.deleteLater方法的典型用法代碼示例。如果您正苦於以下問題:Python Strand.deleteLater方法的具體用法?Python Strand.deleteLater怎麽用?Python Strand.deleteLater使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在cadnano.strand.Strand的用法示例。


在下文中一共展示了Strand.deleteLater方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: getOverlappingStrands

# 需要導入模塊: from cadnano.strand import Strand [as 別名]
# 或者: from cadnano.strand.Strand import deleteLater [as 別名]
 def getOverlappingStrands(self, idxLow, idxHigh):
     dummy_strand = Strand(self, idxLow, idxHigh)
     strand_list = [s for s in self._findOverlappingRanges(dummy_strand)]
     dummy_strand._strandset = None
     dummy_strand.setParent(None)
     dummy_strand.deleteLater()
     dummy_strand = None
     return strand_list
開發者ID:amylittleyang,項目名稱:OtraCAD,代碼行數:10,代碼來源:strandset.py

示例2: getStrand

# 需要導入模塊: from cadnano.strand import Strand [as 別名]
# 或者: from cadnano.strand.Strand import deleteLater [as 別名]
 def getStrand(self, base_idx):
     """Returns the strand that overlaps with base_idx."""
     dummy_strand = Strand(self, base_idx, base_idx)
     strand_list = [s for s in self._findOverlappingRanges(dummy_strand)]
     dummy_strand._strandset = None
     dummy_strand.setParent(None)
     dummy_strand.deleteLater()
     dummy_strand = None
     return strand_list[0] if len(strand_list) > 0 else None
開發者ID:amylittleyang,項目名稱:OtraCAD,代碼行數:11,代碼來源:strandset.py

示例3: hasStrandAt

# 需要導入模塊: from cadnano.strand import Strand [as 別名]
# 或者: from cadnano.strand.Strand import deleteLater [as 別名]
 def hasStrandAt(self, idxLow, idxHigh):
     """
     """
     dummy_strand = Strand(self, idxLow, idxHigh)
     strand_list = [s for s in self._findOverlappingRanges(dummy_strand)]
     dummy_strand._strandset = None
     dummy_strand.setParent(None)
     dummy_strand.deleteLater()
     dummy_strand = None
     return len(strand_list) > 0
開發者ID:amylittleyang,項目名稱:OtraCAD,代碼行數:12,代碼來源:strandset.py

示例4: hasNoStrandAtOrNoXover

# 需要導入模塊: from cadnano.strand import Strand [as 別名]
# 或者: from cadnano.strand.Strand import deleteLater [as 別名]
 def hasNoStrandAtOrNoXover(self, idx):
     dummy_strand = Strand(self, idx, idx)
     strand_list = [s for s in self._findOverlappingRanges(dummy_strand)]
     dummy_strand._strandset = None
     dummy_strand.setParent(None)
     dummy_strand.deleteLater()
     dummy_strand = None
     if len(strand_list) > 0:
         return False if strand_list[0].hasXoverAt(idx) else True
     else:
         return True
開發者ID:amylittleyang,項目名稱:OtraCAD,代碼行數:13,代碼來源:strandset.py

示例5: getIndexToInsert

# 需要導入模塊: from cadnano.strand import Strand [as 別名]
# 或者: from cadnano.strand.Strand import deleteLater [as 別名]
 def getIndexToInsert(self, idxLow, idxHigh):
     """
     """
     can_insert = True
     dummy_strand = Strand(self, idxLow, idxHigh)
     if self._couldStrandInsertAtLastIndex(dummy_strand):
         return can_insert, self._last_strandset_idx
     is_in_set, overlap, idx = self._findIndexOfRangeFor(dummy_strand)
     dummy_strand._strandset = None
     dummy_strand.setParent(None)
     dummy_strand.deleteLater()
     dummy_strand = None
     if overlap:
         can_insert = False
     return can_insert, idx
開發者ID:amylittleyang,項目名稱:OtraCAD,代碼行數:17,代碼來源:strandset.py


注:本文中的cadnano.strand.Strand.deleteLater方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。