uga-libraries / format-report

Aggregate and analyze csv files with file format information generated by the UGA Libraries' digital preservation system (ARCHive).
Creative Commons Attribution Share Alike 4.0 International
0 stars 0 forks source link

Make CSVs separately #21

Closed amhanson9 closed 1 year ago

amhanson9 commented 1 year ago

Currently, makes by format and by AIP CSVs at the same time in the code (both files opened at the same time), since it uses a lot of the same information.

Is there a way to reorganize the code to make those two CSVs separately without having to re-calculate the information for the second one? It would make it easier to navigate the code.

amhanson9 commented 1 year ago

If make by_format in a dataframe (and then save it to a CSV), could then probably update that dataframe to have the collection and AIP IDs to make by_aip.

amhanson9 commented 1 year ago

While reorganizing into functions to make the unit tests, I made a function to save data to a CSV. Even though it still makes the CSVs at the same time, there is now a lot less code in the main body of the script and I think it works fine this way.