Commit ·
c11f6dc
1
Parent(s): 83e1499
Update Climate_site/pages/6_Your_own_research:_Scientific_Publications.py
Browse files
Climate_site/pages/6_Your_own_research:_Scientific_Publications.py
CHANGED
|
@@ -49,19 +49,12 @@ with own_paper_finder:
|
|
| 49 |
|
| 50 |
#try:
|
| 51 |
if st.button('Get the main authors'):
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
#except:
|
| 56 |
-
# st.write("No author found, try with other key words")
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
try:
|
| 62 |
|
| 63 |
-
|
| 64 |
-
|
| 65 |
m = folium.Map(zoom_start = 1)
|
| 66 |
dic_geo = {}
|
| 67 |
for elem in map_author.index:
|
|
@@ -81,8 +74,8 @@ with own_paper_finder:
|
|
| 81 |
folium.Marker([float(elem.split()[1]), float(elem.split()[0])], popup="Author: " + ", ".join(list(dic_geo[elem]["authors"])) + ", Institution: " + ", ".join(list(dic_geo[elem]["institutions"])) + ", Date: " + ", ".join(list(dic_geo[elem]["dates"])), tooltip=", ".join(list(dic_geo[elem]["authors"]))).add_to(m)
|
| 82 |
folium_static(m)
|
| 83 |
|
| 84 |
-
except:
|
| 85 |
-
|
| 86 |
|
| 87 |
|
| 88 |
|
|
|
|
| 49 |
|
| 50 |
#try:
|
| 51 |
if st.button('Get the main authors'):
|
| 52 |
+
|
| 53 |
+
authors, map_author = paper_functions_own_details.main_authors(research_key_words = key_words, details = details , size=size)
|
| 54 |
+
st.dataframe(authors)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 55 |
|
| 56 |
+
#map_author = paper_functions_own_details.map_authors(research_key_words = key_words, details = details , size=size)
|
| 57 |
+
|
| 58 |
m = folium.Map(zoom_start = 1)
|
| 59 |
dic_geo = {}
|
| 60 |
for elem in map_author.index:
|
|
|
|
| 74 |
folium.Marker([float(elem.split()[1]), float(elem.split()[0])], popup="Author: " + ", ".join(list(dic_geo[elem]["authors"])) + ", Institution: " + ", ".join(list(dic_geo[elem]["institutions"])) + ", Date: " + ", ".join(list(dic_geo[elem]["dates"])), tooltip=", ".join(list(dic_geo[elem]["authors"]))).add_to(m)
|
| 75 |
folium_static(m)
|
| 76 |
|
| 77 |
+
#except:
|
| 78 |
+
# st.write("No author found, try with other key words")
|
| 79 |
|
| 80 |
|
| 81 |
|