feature_extractor/feature_extractor.py
def load_plugins(self):
        """ Loads plugin entry points into class attributes"""
        for i in self.discovered_input_plugins:
            print(i, " => ", self.discovered_input_plugins[i])
        if self.conf['input_plugin'] in self.discovered_input_plugins:
            self.ep_i = self.discovered_input_plugins[self.conf['input_plugin']]
            if self.conf['args'] == None:
                # TODO: QUITAR
                _logger.debug("initializing input plugin via constructor.")
            else:
                # if using command line (conf == None), uses unknown parameters from arparser as params for plugins
                _logger.debug("initializing input plugin via command line parameters.")
            self.ep_input = self.ep_i(self.conf)
        else:
            print("Error: Input Plugin not found. Use option --list_plugins to show the list of available plugins.")
            sys.exit()
        if self.conf['output_plugin'] in self.discovered_output_plugins:
            self.ep_o = self.discovered_output_plugins[self.conf['output_plugin']]
            self.ep_output = self.ep_o(self.conf)
        else:
            print("Error: Output Plugin not found. Use option --list_plugins to show the list of available plugins.")
            sys.exit()
        if self.conf['core_plugin'] in self.discovered_core_plugins:
            self.ep_c = self.discovered_core_plugins[self.conf['core_plugin']]
            self.ep_core = self.ep_c(self.conf)
        else:
            print("Warning: Core Plugin not found. Ignore this warning if using the visualizer(it only has input and output plugins). Use feature_extractor --list_plugins, to show the list of available plugins.")
            self.ep_core = None
 Loads plugin entry points into class attributes
Loads plugin entry points into class attributes
Loads plugin entry points into class attributes
def load_plugins(self):
        for i in self.discovered_input_plugins:
            print(i, " => ", self.discovered_input_plugins[i])
        if self.conf['input_plugin'] in self.discovered_input_plugins:
            self.ep_i = self.discovered_input_plugins[self.conf['input_plugin']]
            if self.conf['args'] == None:
                _logger.debug("initializing input plugin via constructor.")
            else:
                _logger.debug("initializing input plugin via command line parameters.")
            self.ep_input = self.ep_i(self.conf)
        else:
            print("Error: Input Plugin not found. Use option --list_plugins to show the list of available plugins.")
            sys.exit()
        if self.conf['output_plugin'] in self.discovered_output_plugins:
            self.ep_o = self.discovered_output_plugins[self.conf['output_plugin']]
            self.ep_output = self.ep_o(self.conf)
        else:
            print("Error: Output Plugin not found. Use option --list_plugins to show the list of available plugins.")
            sys.exit()
        if self.conf['core_plugin'] in self.discovered_core_plugins:
            self.ep_c = self.discovered_core_plugins[self.conf['core_plugin']]
            self.ep_core = self.ep_c(self.conf)
        else:
            print("Warning: Core Plugin not found. Ignore this warning if using the visualizer(it only has input and output plugins). Use feature_extractor --list_plugins, to show the list of available plugins.")
            self.ep_core = None
def load_plugins ( self ) : for i in self . discovered_input_plugins : print ( i , " => " , self . discovered_input_plugins [ i ] ) if self . conf [ 'input_plugin' ] in self . discovered_input_plugins : self . ep_i = self . discovered_input_plugins [ self . conf [ 'input_plugin' ] ] if self . conf [ 'args' ] == None : _logger . debug ( "initializing input plugin via constructor." ) else : _logger . debug ( "initializing input plugin via command line parameters." ) self . ep_input = self . ep_i ( self . conf ) else : print ( "Error: Input Plugin not found. Use option --list_plugins to show the list of available plugins." ) sys . exit ( ) if self . conf [ 'output_plugin' ] in self . discovered_output_plugins : self . ep_o = self . discovered_output_plugins [ self . conf [ 'output_plugin' ] ] self . ep_output = self . ep_o ( self . conf ) else : print ( "Error: Output Plugin not found. Use option --list_plugins to show the list of available plugins." ) sys . exit ( ) if self . conf [ 'core_plugin' ] in self . discovered_core_plugins : self . ep_c = self . discovered_core_plugins [ self . conf [ 'core_plugin' ] ] self . ep_core = self . ep_c ( self . conf ) else : print ( "Warning: Core Plugin not found. Ignore this warning if using the visualizer(it only has input and output plugins). Use feature_extractor --list_plugins, to show the list of available plugins." ) self . ep_core = None
Loads plugin entry points into class attributes
Loads plugin entry points into class attributes
""" Loads plugin entry points into class attributes""" # TODO: QUITAR # if using command line (conf == None), uses unknown parameters from arparser as params for plugins
self