lib/redred.py
def chopEnds(self):
        '''chops time scale to the monotonous central behaviour, deleting the wierd ends.
        to be implemented still needs to modify also the trace array, or it wont work'''
        maxT = max(self.time)
        minT = min(self.time)
        if self.time[0]<self.time[1]:
            start=0
            while self.time[start] < maxT:
                start += 1
            end = start
            while self.time[end] > minT:
                end += 1
            print('From' + str(start) + 'to'+ str(end) + 'pos')
            i=0
            while i in range(end-start):
                self.newtime.append(self.time[i+start])
                self.newtrace.append(self.trace[i+start])
                i += 1
        elif self.time[0]>self.time[1]:
            start=0
            while self.time[start] > minT:
                start += 1
            end = start
            while self.time[end] < maxT:
                end += 1
            print('From' + str(start) + 'to'+ str(end) + 'neg')
            i=0
            while i in range(end-start):
                self.newtime.append(self.time[i+start])
                self.newtrace.append(self.trace[i+start])
                i += 1
chops time scale to the monotonous central behaviour, deleting the wierd ends.
        to be implemented still needs to modify also the trace array, or it wont work
chops time scale to the monotonous central behaviour, deleting the wierd ends.
to be implemented still needs to modify also the trace array, or it wont work
chops time scale to the monotonous central behaviour deleting the wierd ends . to be implemented still needs to modify also the trace array or it wont work
def chopEnds(self):
        maxT = max(self.time)
        minT = min(self.time)
        if self.time[0]<self.time[1]:
            start=0
            while self.time[start] < maxT:
                start += 1
            end = start
            while self.time[end] > minT:
                end += 1
            print('From' + str(start) + 'to'+ str(end) + 'pos')
            i=0
            while i in range(end-start):
                self.newtime.append(self.time[i+start])
                self.newtrace.append(self.trace[i+start])
                i += 1
        elif self.time[0]>self.time[1]:
            start=0
            while self.time[start] > minT:
                start += 1
            end = start
            while self.time[end] < maxT:
                end += 1
            print('From' + str(start) + 'to'+ str(end) + 'neg')
            i=0
            while i in range(end-start):
                self.newtime.append(self.time[i+start])
                self.newtrace.append(self.trace[i+start])
                i += 1
def chopEnds ( self ) : maxT = max ( self . time ) minT = min ( self . time ) if self . time [ 0 ] < self . time [ 1 ] : start = 0 while self . time [ start ] < maxT : start += 1 end = start while self . time [ end ] > minT : end += 1 print ( 'From' + str ( start ) + 'to' + str ( end ) + 'pos' ) i = 0 while i in range ( end - start ) : self . newtime . append ( self . time [ i + start ] ) self . newtrace . append ( self . trace [ i + start ] ) i += 1 elif self . time [ 0 ] > self . time [ 1 ] : start = 0 while self . time [ start ] > minT : start += 1 end = start while self . time [ end ] < maxT : end += 1 print ( 'From' + str ( start ) + 'to' + str ( end ) + 'neg' ) i = 0 while i in range ( end - start ) : self . newtime . append ( self . time [ i + start ] ) self . newtrace . append ( self . trace [ i + start ] ) i += 1
chops time scale to the monotonous central behaviour, deleting the wierd ends.
chops time scale to the monotonous central behaviour deleting the wierd ends .
'''chops time scale to the monotonous central behaviour, deleting the wierd ends.
        to be implemented still needs to modify also the trace array, or it wont work'''
self