Skip to content

Commit

Permalink
fix cits count
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanhb committed Jul 15, 2024
1 parent 33db13b commit 0415c7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/citation_count_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def main():
logger.info("Get citations form Redis for: "+str(anyid_pref+":"+any_id)+ " (omid: "+" ".join(multi_any_ids[any_id])+")" )

#__b_cits = redis_cits.mget(multi_any_ids[any_id])
__b_cits = [_g.decode('utf-8') for _g in redis_cits.mget(multi_any_ids[any_id])]
__b_cits = [_g.decode('utf-8') for _g in redis_cits.mget( list(multi_any_ids[any_id]) ) ]

citing_omids = set()
for _g in __b_cits:
Expand Down Expand Up @@ -215,7 +215,7 @@ def main():
with open(args.out+anyid_pref+"_dupilcates.csv", mode='w', newline='') as output_csvfile:
writer = csv.writer(output_csvfile)
writer.writerow([anyid_pref, 'num_duplicates'])
for c in [ (any_id,multi_any_ids[any_id]) for any_id in multi_any_ids]:
for c in [ (any_id, len(multi_any_ids[any_id]) ) for any_id in multi_any_ids]:
writer.writerow([c[0],str(c[1])])


Expand Down

0 comments on commit 0415c7c

Please sign in to comment.