parameters: (self)
return_statement: return  times_wait
docstring: Estimate wait times at all nodes.
          Returns an array times_wait_est such that 
          the average wait tie at node id_node is
          times_wait_est[id_node]
docstring_summary: Estimate wait times at all nodes.
          Returns an array times_wait_est such that 
          the average wait tie at node id_node is
          times_wait_est[id_node]
docstring_tokens: Estimate wait times at all nodes . Returns an array times_wait_est such that the average wait tie at node id_node is times_wait_est [ id_node ]
function: def get_times_wait_est(self):
          """
          Estimate wait times at all nodes.
          Returns an array times_wait_est such that 
          the average wait tie at node id_node is
          times_wait_est[id_node]
          """
          print 'get_times_wait_est'
          nodes = self.ids_node.get_linktab()
          ids_node = nodes.get_ids()
          ids_node_signif = self.get_nodes_significant()
          #nodetypes = nodes.types[ids_node_signif]
          map_nodetype_to_times_wait = self.get_map_nodetype_to_times_wait()
          
          print '  map_nodetype_to_times_wait',map_nodetype_to_times_wait
          
          times_wait = np.zeros(max(ids_node)+1, dtype = np.int32)
          print '  ',np.min(nodes.types[ids_node_signif]),np.max(nodes.types[ids_node_signif])
          
          times_wait[ids_node_signif] = map_nodetype_to_times_wait[nodes.types[ids_node_signif]]
          
          #for nodetype, time_wait  in map_nodetype_to_times_wait.iteritems():
          #    times_wait[ids_node_signif[nodetypes == nodetype]] = time_wait
          return  times_wait
function_tokens: def get_times_wait_est ( self ) : print 'get_times_wait_est' nodes = self . ids_node . get_linktab ( ) ids_node = nodes . get_ids ( ) ids_node_signif = self . get_nodes_significant ( ) #nodetypes = nodes.types[ids_node_signif] map_nodetype_to_times_wait = self . get_map_nodetype_to_times_wait ( ) print '  map_nodetype_to_times_wait' , map_nodetype_to_times_wait times_wait = np . zeros ( max ( ids_node ) + 1 , dtype = np . int32 ) print '  ' , np . min ( nodes . types [ ids_node_signif ] ) , np . max ( nodes . types [ ids_node_signif ] ) times_wait [ ids_node_signif ] = map_nodetype_to_times_wait [ nodes . types [ ids_node_signif ] ] #for nodetype, time_wait  in map_nodetype_to_times_wait.iteritems(): #    times_wait[ids_node_signif[nodetypes == nodetype]] = time_wait return times_wait