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

Simplify finding accessions #32

Open
amhanson9 opened this issue May 2, 2024 · 0 comments
Open

Simplify finding accessions #32

amhanson9 opened this issue May 2, 2024 · 0 comments
Labels
fixity Related to validate_fixity.py format_list Related to format_list.py risk_update Related to risk_update.py

Comments

@amhanson9
Copy link
Contributor

amhanson9 commented May 2, 2024

Hub has been updated so the path is always parent_directory/status/collection/accession/content and so the collection and accession number formats are more consistent.

Three scripts are iterating through the entire directory (including accession content) with os.walk() looking for markers to indicate a collection or accession in order to allow the script to start at any point. If this becomes too slow, see if we can iterate in a way that stops going down a branch in the directory once it gets to a collection or accession, or if we can add an additional argument to indicate if the start is parent_directory, status, or collection so that the paths can be made without iteration.

@amhanson9 amhanson9 added fixity Related to validate_fixity.py coll_summary Related to collection_summary.py risk_update Related to risk_update.py format_list Related to format_list.py audit Related to accession_completeness_report.py labels May 2, 2024
@amhanson9 amhanson9 removed coll_summary Related to collection_summary.py audit Related to accession_completeness_report.py labels Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fixity Related to validate_fixity.py format_list Related to format_list.py risk_update Related to risk_update.py
Projects
None yet
Development

No branches or pull requests

1 participant