PEATDB/Ekin/Dataset.py
def removeBounded(self, bounds):
        """Remove points within selected x-y bounds"""
        if bounds==None or len(bounds)!=4:
            return
        x1,y1,x2,y2 = bounds
        if x1>x2 :
            temp=x1;x1=x2;x2=temp
        if y1>y2:
            temp=y1;y1=y2;y2=temp
        lst=[]
        for i in range(0,self.length()):
            x=self.x[i]; y=self.y[i]
            if (x>x1 and x<x2) and (y>y1 and y<y2):                
                lst.append(i)
        self.removeMultiple(lst)
        return
Remove points within selected x-y bounds
Remove points within selected x-y bounds
Remove points within selected x - y bounds
def removeBounded(self, bounds):
        if bounds==None or len(bounds)!=4:
            return
        x1,y1,x2,y2 = bounds
        if x1>x2 :
            temp=x1;x1=x2;x2=temp
        if y1>y2:
            temp=y1;y1=y2;y2=temp
        lst=[]
        for i in range(0,self.length()):
            x=self.x[i]; y=self.y[i]
            if (x>x1 and x<x2) and (y>y1 and y<y2):                
                lst.append(i)
        self.removeMultiple(lst)
        return
def removeBounded ( self , bounds ) : if bounds == None or len ( bounds ) != 4 : return x1 , y1 , x2 , y2 = bounds if x1 > x2 : temp = x1 ; x1 = x2 ; x2 = temp if y1 > y2 : temp = y1 ; y1 = y2 ; y2 = temp lst = [ ] for i in range ( 0 , self . length ( ) ) : x = self . x [ i ] ; y = self . y [ i ] if ( x > x1 and x < x2 ) and ( y > y1 and y < y2 ) : lst . append ( i ) self . removeMultiple ( lst ) return
Remove points within selected x-y bounds
Remove points within selected x - y bounds
"""Remove points within selected x-y bounds"""
self
bounds