#NEWLINE# def update_avg( self , avg ) : #NEWLINE# #INDENT# self . _avg = gamma_filter ( self . _avg , avg , self . _g ) #NEWLINE# if ( ( self . _max is None ) or ( avg > self . _max ) ) : #NEWLINE# #INDENT# self . _max = avg #NEWLINE# #UNINDENT# if ( ( self . _min is None ) or ( self < self . _min ) ) : #NEWLINE# #INDENT# self . _min = avg