IMAP-Science-Operations-Center / imap-data-access

Package to download, query, and upload files from the IMAP Science Data Center.
MIT License
0 stars 7 forks source link

Adding universally useful file path and file name management to imap-data-access #14

Closed maxinelasp closed 4 months ago

maxinelasp commented 4 months ago

Change Summary

Moving some of the file management stuff from sds-data-manager to this repo for wider use. I'd appreciate a close review from @bourque, @greglucas, and @tech3371 to make sure this lines up with what they are expecting

Overview

Added new file_validation.py file, with a shared ScienceFilepathManager class (copied from Tenzin's work on sds-manager, I need to add her and Laura as coauthors actually), which I refactored slightly for more wide adoption. Also added some useful shared methods in that file and a list of valid instruments and levels.

New Dependencies

I moved the project to poetry (don't leave me unattended) to match the other projects. No new dependencies there though

New Files

Updated Files

Testing

Updated one test to add imap/ as part of the expected path... I think this is correct, but would appreciate a double-check.