USGS-R / river-dl

Deep learning model for predicting environmental variables on river systems
Creative Commons Zero v1.0 Universal
21 stars 14 forks source link

adding repo status to asRunConfig file #174

Closed janetrbarclay closed 2 years ago

janetrbarclay commented 2 years ago

This PR adds the repo status to the asRunConfig file and creates a log of runs.

Adding the repo status involves updating the environment to add git. Without the environment update the repo status will be "unknown", otherwise it will be "dirty" or "clean" based on the existence of modified / new files. Any new / modified files will be listed but the differences are not noted. If the repo is "dirty" a zipped archive of the river_dl code directory is added to the output directory.

The log of runs is a csv file with 3 fields: Date, Directory, and Description. The log is stored in the uppermost river-dl directory. The Date and Directory fields are calculated at run-time. The Description is a new entry to the config file.