コード例 #1
0
 def __init__(self, nodes):
     self.nodes = LCMSFeatureTreeList(nodes)
コード例 #2
0
 def clone(self, deep=False):
     return LCMSFeatureTreeList(node.clone(deep=deep) for node in self)
コード例 #3
0
 def _copy_chunk(self, nodes, *args, **kwargs):
     x = self.__class__(LCMSFeatureTreeList(nodes))
     x.used_as_adduct = list(self.used_as_adduct)
     return x
コード例 #4
0
 def truncate_after(self, time):
     _, i = self.nodes.find_time(time)
     if self.nodes[i].time < time:
         i += 1
     self.nodes = LCMSFeatureTreeList(self.nodes[:i])
     self._invalidate()
コード例 #5
0
 def truncate_before(self, time: float):
     _, i = self.nodes.find_time(time)
     if self.nodes[i].time < time:
         i += 1
     self.nodes = LCMSFeatureTreeList(self.nodes[i:])
     self._invalidate()