#NEWLINE# def run_analysis_for_a_clustering( self , clustering_id , clustering_info ) : #NEWLINE# #INDENT# "\n        Adds one process to the scheduler which will run all the analysis in the analysis queue for one \n        clustering. The analysis are not executed instantaneously but when the calculating function is used.\n        \n        @param clustering_id: The clustering_id of the clustering we are going to work with.\n        \n        @param clustering_info: The 'clustering_info' structure with the clustering to be analyzed.\n        " #NEWLINE# func_kwargs = { #NEWLINE# #INDENT# 'clustering_id' : clustering_id , #NEWLINE# 'clustering' : clustering_info [ clustering_id ] [ 'clustering' ] , #NEWLINE# 'analysis' : self . analysis , #NEWLINE# #UNINDENT# } #NEWLINE# task_name = ( 'Evaluation of %s' % clustering_id ) #NEWLINE# description = ( 'Evaluation of %s clustering (%s) with parameters: %s' % ( clustering_info [ clustering_id ] [ 'type' ] , clustering_id , clustering_info [ clustering_id ] [ 'parameters' ] ) ) #NEWLINE# self . scheduler . add_task ( task_name = task_name , description = description , target_function = run_all_analysis_for_a_clustering , function_kwargs = func_kwargs , dependencies = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# self . current_analysis += 1