PEATDB/Ekin/Titration.py
def filterGhost(self, calcspan, expspan, titrpka, exppka, distance):
        """Apply criteria for assignment of ghost"""
        pkacutoff=1
        spancutoff=0.01
        #print calcspan, expspan, titrpka, exppka
        if abs(calcspan) < spancutoff:
            return False
        if calcspan>0 and expspan<0:
            return False
        if calcspan<0 and expspan>0:
            return False
        if abs(exppka-titrpka) > pkacutoff:
            return False
        #if distance > 20:
        #    return False
        return True
Apply criteria for assignment of ghost
Apply criteria for assignment of ghost
Apply criteria for assignment of ghost
def filterGhost(self, calcspan, expspan, titrpka, exppka, distance):
        pkacutoff=1
        spancutoff=0.01
        if abs(calcspan) < spancutoff:
            return False
        if calcspan>0 and expspan<0:
            return False
        if calcspan<0 and expspan>0:
            return False
        if abs(exppka-titrpka) > pkacutoff:
            return False
        return True
def filterGhost ( self , calcspan , expspan , titrpka , exppka , distance ) : pkacutoff = 1 spancutoff = 0.01 if abs ( calcspan ) < spancutoff : return False if calcspan > 0 and expspan < 0 : return False if calcspan < 0 and expspan > 0 : return False if abs ( exppka - titrpka ) > pkacutoff : return False return True
Apply criteria for assignment of ghost
Apply criteria for assignment of ghost
"""Apply criteria for assignment of ghost""" #print calcspan, expspan, titrpka, exppka #if distance > 20: #    return False
self
calcspan
expspan
titrpka
exppka
distance