#NEWLINE# def _readHarry( self ) : #NEWLINE# #INDENT# path = ( '%s.harry' % oneComm . datapath ) #NEWLINE# def harryProcessor( harryRow ) : #NEWLINE# #INDENT# return [ harryRow [ 0 ] , int ( harryRow [ 1 ] ) , harryRow [ 2 ] ] #NEWLINE# #UNINDENT# self . harry = self . _processData ( path , harryProcessor , self . N , skipFirstLine = True ) #NEWLINE# self . comms = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for ( i , h ) in enumerate ( self . harry ) : #NEWLINE# #INDENT# self . comms . setdefault ( h [ 0 ] , [ ] ) . append ( ( i , h [ 1 ] , h [ 2 ] ) ) #NEWLINE# #UNINDENT# for oneComm in self . comms . values ( ) : #NEWLINE# #INDENT# oneComm . sort ( key = operator . itemgetter ( 1 ) )