#NEWLINE# def find_card( self , group , name ) : #NEWLINE# #INDENT# 'Returns the value for a given namelist variable in a given group.\n\n        Args\n        ----\n        group: string\n            namelist group name.\n\n        name: string\n            namelist variable name.' #NEWLINE# group_id = self . groups . index ( group ) #NEWLINE# for card in self . cards [ group_id ] : #NEWLINE# #INDENT# if ( card . name == name ) : #NEWLINE# #INDENT# return card . value #NEWLINE# #UNINDENT# #UNINDENT# msg = ( ( 'Variable %s' % msg ) + ( ' not found in namelist %s.' % group ) ) #NEWLINE# raise RuntimeError ( msg )