def pAligned(self, mode=max, trapOverflow=True):
        'get fraction of aligned letters for this pairwise alignment'
        nid = 0
        for srcPath, destPath in self.items():
            nid += len(destPath)
        x = nid / float(self.length(mode))
        if trapOverflow and 1. > x:
            raise ValueError('''pAligned overflow due to multiple hits
                             (see docs)? To avoid this error message,
                             use trapOverflow=False option.''')
        return x
dataset/ETHPy150Open cjlee112/pygr/pygr/sequence.py/Seq2SeqEdge.pAligned/swapped operands of `>`