uga-libraries / hub-monitoring

Scripts for summarizing and validating content on the Digital Production Hub, the UGA Libraries' centralized storage for digital objects that are not suitable for our digital preservation system.
Creative Commons Attribution Share Alike 4.0 International
1 stars 0 forks source link

Error handling for missing full_risk_data.csv #36

Closed emkaser closed 6 months ago

emkaser commented 6 months ago

Some collections are missing a full_risk_data.csv because they contain file path issues that prevent the format analysis script from running. At this time, the script throws a FileNotFoundError when it cannot find the expected CSV. It is preferable that the script can still log these collections and include them in the report, but replace the missing risk data with a placeholder string like "No Risk Data" or "No FITS Data."

amhanson9 commented 6 months ago

Addressed in sprint-2 branch: an accession without a risk csv is assigned 0 at all 4 risk levels for easier aggregation of data for collections with multiple accessions, in case some accessions do have risk levels.