Source code for pycif.plugins.transforms.complex.satellites.flushrun

from glob import glob

from .....utils import path


[docs] def flushrun(self, rundir, mode, transform_id, full_flush=True): """Cleaning the simulation directories to limit space usage""" # In fwd and tl, does nothing as files are needed for adj if mode != "adj": return # Now flushes intermediate files from fwd if not hasattr(self, "adj_refdir"): return for f in glob( f"{self.adj_refdir}/chain/satellites/{transform_id}/*"): path.remove(f)