def clear_dir(self):
        """Clear the output directory of all output files."""
        for snapshot in output_utils.get_filenames(self.output_dir):
            if snapshot.endswith('.pkl'):
                os.remove(snapshot)