-
Notifications
You must be signed in to change notification settings - Fork 569
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds openalex client as a default client #555
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: James Braza <[email protected]>
…ove bibtext_mapping with comment, update imports, add comment and example of openalex link
paperqa/clients/openalex.py
Outdated
Parsed document details. | ||
""" | ||
authors = [ | ||
authorship.get("raw_author_name") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This .get
if it returns None
, won't the reformat_name
blow up?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you're right -- I was thinking this could never be None
so I didn't put much thought into it originally. but it's safer regardless.
Added some safeguards. lmk
** Summary of Changes **