Spaces:
Sleeping
Sleeping
Comment ages
Browse files
plots.py
CHANGED
@@ -22,15 +22,16 @@ mean_cfdi = papers_df["incoming_diversity"].mean()
|
|
22 |
# Compute the mean CADI
|
23 |
mean_citation_ages = []
|
24 |
|
25 |
-
#
|
26 |
-
|
27 |
-
|
28 |
-
"
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
|
|
34 |
|
35 |
|
36 |
def generate_cfdi_plot(input_cfdi, compute_type="paper"):
|
|
|
22 |
# Compute the mean CADI
|
23 |
mean_citation_ages = []
|
24 |
|
25 |
+
# Commenting out the old code
|
26 |
+
#|# Open the file and read the content in a list
|
27 |
+
#|with open(
|
28 |
+
#| os.path.join(dirname, "data/nlp_papers_citation_age.txt"),
|
29 |
+
#| "r",
|
30 |
+
#| encoding="utf-8",
|
31 |
+
#|) as filehandle:
|
32 |
+
#| for line in filehandle:
|
33 |
+
#| temp = float(line[:-1])
|
34 |
+
#| mean_citation_ages.append(temp)
|
35 |
|
36 |
|
37 |
def generate_cfdi_plot(input_cfdi, compute_type="paper"):
|