Skip to content

Commit

Permalink
Remove 5-year counts
Browse files Browse the repository at this point in the history
  • Loading branch information
jmelot authored and brianlove committed Jun 24, 2024
1 parent 98b5848 commit 9e729f0
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 52 deletions.
20 changes: 0 additions & 20 deletions web/gui-v2/src/static_data/table_columns.js
Original file line number Diff line number Diff line change
Expand Up @@ -268,16 +268,6 @@ const columnDefinitions = [
category: "publications",
...generateSliderColDef("articles", "all_publications"),
},
{
title: "5-year total publications",
key: "all_pubs_5yr",
aggregateType: "median",
category: "publications",
...generateSliderColDef(
"articles",
"all_pubs_5yr"
),
},
{
title: "Citations to AI pubs",
key: "citations",
Expand Down Expand Up @@ -340,16 +330,6 @@ const columnDefinitions = [
category: "patents",
...generateSliderColDef("patents", "all_patents"),
},
{
title: "5-year total patents",
key: "all_patents_5yr",
aggregateType: "median",
category: "patents",
...generateSliderColDef(
"patents",
"all_patents_5yr"
),
},
{
title: "Agricultural patents",
key: "agri_patents",
Expand Down
12 changes: 0 additions & 12 deletions web/scripts/retrieve_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -852,18 +852,6 @@ def add_derived_metrics(js: dict, end_article_year: int, end_patent_year: int) -
:param end_patent_year: End year to use for patent metrics
:return: None (mutates js)
"""
# 5-year publication counts
article_end_idx = YEARS.index(end_article_year)
article_yearly_counts = js["articles"]["all_publications"]["counts"]
five_year_articles = sum(article_yearly_counts[article_end_idx-4:article_end_idx+1])
js["articles"]["all_pubs_5yr"] = {"counts": [], "total": five_year_articles, "isTopResearch": False}

# 5-year patent counts
patent_end_idx = YEARS.index(end_patent_year)
patent_yearly_counts = js["patents"]["all_patents"]["counts"]
five_year_patents = sum(patent_yearly_counts[patent_end_idx-4:patent_end_idx+1])
js["patents"]["all_patents_5yr"] = {"counts": [], "total": five_year_patents, "table": None}

# AI publication percentage
ai_pubs_pct = get_field_percentage(js, "articles", "all_publications", "ai_publications")
js["articles"]["ai_pubs_percent"] = {"counts": [], "total": ai_pubs_pct, "isTopResearch": False}
Expand Down
10 changes: 0 additions & 10 deletions web/tests/test_data/alphabet_output.json
Original file line number Diff line number Diff line change
Expand Up @@ -186,11 +186,6 @@
"total": 17.7,
"isTopResearch": false
},
"all_pubs_5yr": {
"counts": [],
"total": 675,
"isTopResearch": false
},
"ai_citation_counts": {
"counts": [
0,
Expand Down Expand Up @@ -918,11 +913,6 @@
"total": 153,
"table": "application"
},
"all_patents_5yr": {
"counts": [],
"table": null,
"total": 7960
},
"ai_patents_percent": {
"counts": [],
"table": null,
Expand Down
10 changes: 0 additions & 10 deletions web/tests/test_data/hugging_face_output.json
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,6 @@
"total": 78.3,
"isTopResearch": false
},
"all_pubs_5yr": {
"counts": [],
"total": 23,
"isTopResearch": false
},
"ai_citation_counts": {
"counts": [
0,
Expand Down Expand Up @@ -872,11 +867,6 @@
"growth": null,
"table": null
},
"all_patents_5yr": {
"counts": [],
"table": null,
"total": 0
},
"ai_patents_percent": {
"counts": [],
"table": null,
Expand Down

0 comments on commit 9e729f0

Please sign in to comment.