(self, prefix)
Internally used to catch functions with some specific prefix
        as non-terminals of the GP core
Internally used to catch functions with some specific prefix
        as non-terminals of the GP core
Internally used to catch functions with some specific prefix as non - terminals of the GP core
def __gp_catch_functions(self, prefix):
        """ Internally used to catch functions with some specific prefix
        as non-terminals of the GP core """
        import __main__ as mod_main

        function_set = {}

        main_dict = mod_main.__dict__
        for obj, addr in main_dict.items():
            if obj[0:len(prefix)] == prefix:
                try:
                    op_len = addr.func_code.co_argcount
                except:
                    continue
                function_set[obj] = op_len

        if len(function_set) <= 0:
            Util.raiseException("No function set found using function prefix '%s' !" % prefix, ValueError)

        self.setParams(gp_function_set=function_set)
def __gp_catch_functions ( self , prefix ) : import __main__ as mod_main function_set = { } main_dict = mod_main . __dict__ for obj , addr in main_dict . items ( ) : if obj [ 0 : len ( prefix ) ] == prefix : try : op_len = addr . func_code . co_argcount except : continue function_set [ obj ] = op_len if len ( function_set ) <= 0 : Util . raiseException ( "No function set found using function prefix '%s' !" % prefix , ValueError ) self . setParams ( gp_function_set = function_set )