#NEWLINE# def start( self , task ) : #NEWLINE# #INDENT# 'Return a fake solver process.' #NEWLINE# all_runs = self . _runs_data . run_lists [ task ] #NEWLINE# our_runs = filter ( ( lambda run : ( run . solver == self . _solver_name ) ) , all_runs ) #NEWLINE# if ( len ( our_runs ) == 0 ) : #NEWLINE# #INDENT# raise Exception ( 'no runs of solver "{0}" are recorded' . format ( our_runs . _solver_name ) ) #NEWLINE# #UNINDENT# run = our_runs [ numpy . random . randint ( len ( our_runs ) ) ] #NEWLINE# return FakeSolverProcess ( run )