geoschem / integrated_methane_inversion

Integrated Methane Inversion workflow repository.
https://imi.readthedocs.org
MIT License
25 stars 19 forks source link

Feature: cleanup script #184

Closed laestrada closed 4 months ago

laestrada commented 5 months ago

Name and Institution (Required)

Name: Lucas Estrada Institution: Harvard ACMG

Describe the update

Simple interactive utility script for cleanup of IMI output. Currently set up to delete:

I also include a dry-run mode that prints all the directories that will have recursive deletions without performing the removals.

Usage is: ./cleanup_script.sh <config_file_path.yml>

@djvaron @msulprizio @nicholasbalasus @eastjames please let me know if you think of additional files/directories that should be optionally deleted with this script

msulprizio commented 5 months ago

Thanks @laestrada! This is great. Do you think it would be worth copying this script to the IMI output directory so that users could easily access it without having to search for it in the IMI repo?

laestrada commented 5 months ago

Thanks @laestrada! This is great. Do you think it would be worth copying this script to the IMI output directory so that users could easily access it without having to search for it in the IMI repo?

Thanks @msulprizio , I think that is a good idea. I will make some updates, such that if no config file is provided it assumes the current directory is the output directory.