Skip to content
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

Fix error using parse_pubmed_xml() on current pubmed XML file #99

Merged
merged 1 commit into from
Jun 16, 2021
Merged

Fix error using parse_pubmed_xml() on current pubmed XML file #99

merged 1 commit into from
Jun 16, 2021

Conversation

raypereda
Copy link

The added pubmed21n1298.xml file works for parse_medline_xml() but not on parse_pubmed_xml(). This PR came out of this issue #95 (comment) It looks like the XML format changed. tree.find(".//article-meta") is returning NoneType and breaking following code.

@titipata
Copy link
Owner

This is awesome, thanks @raypereda! I tested and it works. I will accept the PR.

@titipata titipata merged commit f5d52d2 into titipata:master Jun 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants