Skip to content

Commit cd24b78

Browse files
committed
Simplify author count bucketing to continuous logic block
1 parent b6e19a9 commit cd24b78

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

scripts/1-fetch/arxiv_fetch.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -417,8 +417,6 @@ def extract_metadata_from_xml(record_xml):
417417

418418
def bucket_author_count(author_count):
419419
"""Convert author count to predefined buckets: "1", "2", "3", "4", "5+"."""
420-
if author_count <= 0:
421-
return "0"
422420
if author_count <= 4:
423421
return str(author_count)
424422
return "5+"

0 commit comments

Comments
 (0)