jpwahle commited on
Commit
1380b5a
1 Parent(s): 0696dbe

Comment ages

Browse files
Files changed (1) hide show
  1. plots.py +10 -9
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
- # Open the file and read the content in a list
26
- with open(
27
- os.path.join(dirname, "data/nlp_papers_citation_age.txt"),
28
- "r",
29
- encoding="utf-8",
30
- ) as filehandle:
31
- for line in filehandle:
32
- temp = float(line[:-1])
33
- mean_citation_ages.append(temp)
 
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"):