Skip to content

Commit

Permalink
convert affi to str
Browse files Browse the repository at this point in the history
  • Loading branch information
TideDra committed Dec 26, 2024
1 parent 8f41ec0 commit 3472e4d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions paper.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ def affiliations(self) -> Optional[list[str]]:
affiliations = re.search(r'\[.*?\]', affiliations, flags=re.DOTALL).group(0)
affiliations = eval(affiliations)
affiliations = list(set(affiliations))
affiliations = [str(a) for a in affiliations]
except Exception as e:
logger.debug(f"Failed to extract affiliations of {self.arxiv_id}: {e}")
return None
Expand Down

0 comments on commit 3472e4d

Please sign in to comment.