#NEWLINE# def _get_case_data( self , driver , inputs , outputs ) : #NEWLINE# #INDENT# 'Return a list of values for the case in the same order as our values.\n        Raise a KeyError if any of our names are missing from the case.\n        ' #NEWLINE# ( in_names , out_names ) = self . _cfg_map [ driver ] #NEWLINE# vals = [ ] #NEWLINE# for name in self . _names : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# i = in_names . index ( name ) #NEWLINE# #UNINDENT# except ValueError : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# i = out_names . index ( name ) #NEWLINE# #UNINDENT# except ValueError : #NEWLINE# #INDENT# raise KeyError ( ( 'input or output is missing from case: %s' % name ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# vals . append ( outputs [ i ] ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# vals . append ( inputs [ i ] ) #NEWLINE# #UNINDENT# #UNINDENT# return vals