#NEWLINE# def reactions( self , tag , data , reactors ) : #NEWLINE# #INDENT# '\n        Render a list of reactor files and returns a reaction struct\n        ' #NEWLINE# log . debug ( 'Compiling reactions for tag {0}' . format ( tag ) ) #NEWLINE# high = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# chunks = [ ] #NEWLINE# try : #NEWLINE# #INDENT# for fn_ in reactors : #NEWLINE# #INDENT# high . update ( self . render_reaction ( fn_ , tag , data ) ) #NEWLINE# #UNINDENT# if high : #NEWLINE# #INDENT# errors = self . verify_high ( high ) #NEWLINE# if errors : #NEWLINE# #INDENT# log . error ( 'Unable to render reactions for event {0} due to errors ({1}) in one or more of the sls files ({2})' . format ( tag , errors , reactors ) ) #NEWLINE# return [ ] #NEWLINE# #UNINDENT# chunks = self . order_chunks ( self . compile_high_data ( high ) ) #NEWLINE# #UNINDENT# #UNINDENT# except Exception as exc : #NEWLINE# #INDENT# log . error ( 'Exception trying to compile reactions: {0}' . format ( exc ) , exc_info = True ) #NEWLINE# #UNINDENT# return chunks