#NEWLINE# def only_successful( self ) : #NEWLINE# #INDENT# 'Return only instances on which some solver succeeded.' #NEWLINE# data = RunData ( self . solver_names ) #NEWLINE# for ( id_ , run_list ) in self . run_lists . iteritems ( ) : #NEWLINE# #INDENT# if any ( ( run . success for run in run_list ) ) : #NEWLINE# #INDENT# for run in run_list : #NEWLINE# #INDENT# data . add_run ( id_ , run ) #NEWLINE# #UNINDENT# data . add_feature_vector ( id_ , self . feature_vectors [ id_ ] ) #NEWLINE# #UNINDENT# #UNINDENT# data . common_budget = self . common_budget #NEWLINE# return data