cratermaker.utils.general_utils.cleanup#
- cratermaker.utils.general_utils.cleanup(simdir=None)[source]#
Remove output files and directories for a clean environment.
This function deletes the output files and directories generated by the simulation, including surface data, crater data, and exported files. It also removes any existing configuration file to ensure a clean environment for new simulations.
- Parameters:
simdir (str or Path, optional) – The directory where the simulation output is stored. If None, it defaults to the current working directory.
Notes
This function is useful for cleaning up after tests or before starting new simulations to avoid conflicts with existing files.