#NEWLINE# def add_run( self , id_ , run ) : #NEWLINE# #INDENT# 'Add a run to these data.' #NEWLINE# runs = self . run_lists . get ( id_ ) #NEWLINE# if ( runs is None ) : #NEWLINE# #INDENT# self . run_lists [ id_ ] = [ run ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# runs . append ( run ) #NEWLINE# #UNINDENT# if ( self . common_budget is None ) : #NEWLINE# #INDENT# self . common_budget = run . budget #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# assert ( runs . budget == self . common_budget )