def setPeakExtras(self): if self.rawPeak.assign[0]: # # Make peakContrib... # self.peakContribs.append(Nmr.PeakContrib(self.peak))
def setPeakExtras(self): if self.cyanaFormat and self.rawPeak.ambiguousAssign: # # Make peakContribs for this one... # numContribs = len(self.rawPeak.ambiguousAssign) + 1 for i in range(numContribs): self.peakContribs.append(Nmr.PeakContrib(self.peak))
def setPeakExtras(self): if self.peakFile.hasAssignItems: # # Find maximum number (could in principle be different?) # maxNumContribs = 0 for assignIndex in range(len(self.rawPeak.assign)): if self.rawPeak.assign[assignIndex]: numContribs = len(self.rawPeak.assign[assignIndex].split( self.assignTagSep)) else: numContribs = 0 if maxNumContribs < numContribs: maxNumContribs = numContribs for i in range(maxNumContribs): self.peakContribs.append(Nmr.PeakContrib(self.peak))