EmmaScharfmannBerkeley commited on
Commit
e0d04d6
·
1 Parent(s): 2ccab26

Update Climate_site/python_scripts/paper_functions_own_details.py

Browse files
Climate_site/python_scripts/paper_functions_own_details.py CHANGED
@@ -494,11 +494,14 @@ def main_authors( research_key_words , details , size):
494
  institutions += ", " + data["last_known_institution"]["display_name"]
495
  except:
496
  pass
497
-
498
- dic_papers_co_authors[author_name_norm]["Last Known Institution"] = institutions
499
- dic_papers_co_authors[author_name_norm]["Number of works"] = work_count
500
- dic_papers_co_authors[author_name_norm]["Number of citations"] = cited_by_count
501
- dic_papers_co_authors[author_name_norm]["Institution_id"] = institution_id
 
 
 
502
 
503
 
504
 
 
494
  institutions += ", " + data["last_known_institution"]["display_name"]
495
  except:
496
  pass
497
+
498
+ if work_count == 0:
499
+ dic_papers_co_authors.pop(author_name_norm)
500
+ else:
501
+ dic_papers_co_authors[author_name_norm]["Last Known Institution"] = institutions
502
+ dic_papers_co_authors[author_name_norm]["Number of works"] = work_count
503
+ dic_papers_co_authors[author_name_norm]["Number of citations"] = cited_by_count
504
+ dic_papers_co_authors[author_name_norm]["Institution_id"] = institution_id
505
 
506
 
507