#NEWLINE# def get_metrics_for_id( self , id , provider_url_template = None , cache_enabled = True ) : #NEWLINE# #INDENT# metrics_dict = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# reviewed_by_f1000 = self . _check_reviewed_by_f1000 ( id , cache_enabled ) #NEWLINE# if reviewed_by_f1000 : #NEWLINE# #INDENT# metrics_dict [ 'pubmed:f1000' ] = reviewed_by_f1000 #NEWLINE# #UNINDENT# citing_pmcids = list ( set ( self . _get_citing_pmcids ( id , provider_url_template ) ) ) #NEWLINE# if citing_pmcids : #NEWLINE# #INDENT# metrics_dict [ 'pubmed:pmc_citations' ] = len ( citing_pmcids ) #NEWLINE# number_review_pmids = len ( self . _filter ( id , citing_pmcids , 'review' ) ) #NEWLINE# if number_review_pmids : #NEWLINE# #INDENT# metrics_dict [ 'pubmed:pmc_citations_reviews' ] = number_review_pmids #NEWLINE# #UNINDENT# number_editorial_pmids = len ( self . _filter ( id , citing_pmcids , 'editorial' ) ) #NEWLINE# if number_editorial_pmids : #NEWLINE# #INDENT# metrics_dict [ 'pubmed:pmc_citations_editorials' ] = number_editorial_pmids #NEWLINE# #UNINDENT# #UNINDENT# return metrics_dict