llama.dev.clean package

Clean up the LLAMA output directory, rotating out-of-date auxilliary files out of the way and archiving them on remote storage.

llama.dev.clean.cleanup_testevents(run: llama.run.Run, olderthan: float, archive_dir: str = None, dryrun: bool = False)

Clean up all events returned by run.events that are older than olderthan seconds and move them to a dated subdirectory of archive_dir (defaults to TEST_ARCHIVE). You should apply any downselections to run so that run.events only returns test events. If dryrun is True, no action will be taken, but the intended actions will be logged.