Standardized author name formatting and eliminated code duplication in Zenodo metadata processing. #616
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This message was generated by git-bob (version: 0.17.0, model: github_models:gpt-4o, log), an experimental AI-based assistant. It can make mistakes and has limitations. Check its messages carefully.
This pull request addresses issue #615 by standardizing the format of author names from "Lastname, Firstname" to "Firstname Lastname" in the Zenodo metadata processing. A new helper function
reformat_author
has been added toscripts/auto-add-zenodo-entry.py
and integrated into thecomplete_zenodo_data
function. Similarly,scripts/generate_link_lists.py
now uses a new functionformat_author_name
for this purpose. Additionally, thecomplete_zenodo_data
function has been removed fromscripts/generate_link_lists.py
to eliminate duplication, and the version fromscripts/auto-add-zenodo-entry.py
is now directly used. These changes simplify code maintenance and improve the consistency of name formatting across the repository.complete_zenodo_data
here.complete_zenodo_data
function.closes #615