elifesciences / elife-tools

Python library for parsing eLife article XML data.
MIT License
15 stars 7 forks source link

Refactor non-byline authors and format_contributor #423

Closed gnott closed 11 months ago

gnott commented 11 months ago

An inefficiency in parseJATS.authors_non_byline() where it was calling format_contributor() for every contributor when it doesn't need to. This led to refactoring of how contributor details are set.

The existing tests are passing, although the XML parsing speed is only potentially increased for articles with many contributors.