#NEWLINE# def initialize( self , context ) : #NEWLINE# #INDENT# '\n        Initialization that is performed at the begining of the run (after the device has\n        been connecte).\n\n        ' #NEWLINE# loader = ExtensionLoader ( ) #NEWLINE# for module_spec in self . dynamic_modules : #NEWLINE# #INDENT# module = self . _load_module ( loader , module_spec ) #NEWLINE# if ( not hasattr ( module , 'probe' ) ) : #NEWLINE# #INDENT# message = 'Module {} does not have "probe" attribute; cannot be loaded dynamically' #NEWLINE# raise ValueError ( message . format ( module . name ) ) #NEWLINE# #UNINDENT# if module . probe ( self ) : #NEWLINE# #INDENT# self . logger . debug ( 'Installing module "{}"' . format ( module . name ) ) #NEWLINE# self . _install_module ( module ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . logger . debug ( 'Module "{}" is not supported by the device' . format ( module . name ) )