#NEWLINE# def get_plugin_score( variant , plugin_name , config_parser ) : #NEWLINE# #INDENT# 'Return the score found for a plugin\n    \n        Args:\n            variant (dict): A variant dictionary\n            plugin_name (str): A plugin name\n            config_parser (ConfigParser): A config parser object with score functions\n        Returns:\n            category_score (float): The rank score for this variant\n    \n    ' #NEWLINE# logger . debug ( 'Checking scores for plugin {0}' . format ( plugin_name ) ) #NEWLINE# plugin = config_parser . plugins [ plugin_name ] #NEWLINE# score_function = config_parser . score_functions [ plugin_name ] #NEWLINE# value = plugin . get_value ( variant_dict = plugin ) #NEWLINE# logger . debug ( 'Found value {0} for plugin {1}' . format ( value , plugin_name ) ) #NEWLINE# score = score_function . get_score ( value ) #NEWLINE# logger . debug ( 'Score is {0} for plugin {1}' . format ( score , plugin_name ) ) #NEWLINE# return score