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 thanolderthan
seconds and move them to a dated subdirectory ofarchive_dir
(defaults toTEST_ARCHIVE
). You should apply any downselections torun
so thatrun.events
only returns test events. Ifdryrun
isTrue
, no action will be taken, but the intended actions will be logged.