#NEWLINE# def ShowROIStatus( self , left , right , name = '' , panel = 0 ) : #NEWLINE# #INDENT# if ( left > right ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# sum = self . ydata [ left : right ] . sum ( ) #NEWLINE# dt = self . mca . real_time #NEWLINE# self . roi_aves [ panel ] . update ( sum ) #NEWLINE# ( nmsg , cmsg , rmsg ) = ( '' , '' , '' ) #NEWLINE# if ( len ( name ) > 0 ) : #NEWLINE# #INDENT# nmsg = ( ' %s' % name ) #NEWLINE# #UNINDENT# cmsg = ' Counts={:10,.0f}' . format ( sum ) #NEWLINE# if ( ( dt is not None ) and ( dt > 1e-09 ) ) : #NEWLINE# #INDENT# rmsg = ' CPS={:10,.1f}' . format ( ( sum / dt ) ) #NEWLINE# #UNINDENT# self . write_message ( ( '%s%s%s' % ( nmsg , cmsg , rmsg ) ) , panel = panel )