Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add functionality to seisflows clean command #235

Open
bch0w opened this issue Nov 15, 2024 · 0 comments
Open

add functionality to seisflows clean command #235

bch0w opened this issue Nov 15, 2024 · 0 comments

Comments

@bch0w
Copy link
Member

bch0w commented Nov 15, 2024

Often seisflows users will want to keep their working directory for reference, or to hold onto results, but they will no longer be running workflows in it. Therefore, lots of the scratch files are unnecessary, but large and taking up space on the machine. It would be useful to have a variation of the clean command that scraps these large files, ensures that everything worth keeping is in the output directory, and maybe sets up the working directory so that it could be used again without too much manual work.

I have tried to do this previously with personal scripts but haven't done it generally. This would be good practice as I know many users have many seisflows working directories and if their SPECFEM models are large this becomes a storage problem.

https://github.com/bch0w/simutils/blob/master/seisflows/debug_tools/clean_scratch.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant