elifesciences / elife-tools

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

Refactoring for contributors and first node queries #427

Closed gnott closed 11 months ago

gnott commented 11 months ago

More efficiency improvements for contributors. It also includes a new utils function to find the first node of a tag, which seems to be faster than using first(extract_nodes())

Arguments of format_contributor() and format_contrib_refs() are changed, which are expected to only be called internally by calling format_authors(), and it may be a breaking change for any direct calls to those, which doesn't apply to eLife articles that I can see.