ATLAS Offline Software
Functions | Variables
python.algorithms.preprocessors.directory_cleaner Namespace Reference

Functions

def directory_cleaner (*args)
 Clean up the directory before running. More...
 

Variables

 logger = Logging.logging.getLogger("PowhegControl")
 Get handle to Athena logging. More...
 

Function Documentation

◆ directory_cleaner()

def python.algorithms.preprocessors.directory_cleaner.directory_cleaner ( args)

Clean up the directory before running.

Remove any existing LHE files to avoid repeated events.

Author
James Robinson james.nosp@m..rob.nosp@m.inson.nosp@m.@cer.nosp@m.n.ch

Definition at line 13 of file preprocessors/directory_cleaner.py.

13 def directory_cleaner(*args):
14  """! Clean up the directory before running.
15 
16  Remove any existing LHE files to avoid repeated events.
17 
18  @author James Robinson <james.robinson@cern.ch>
19  """
20  for LHE_file in glob.glob("*.lhe") + glob.glob("*.ev*ts"):
21  logger.warning("Removing existing LHE file: {}".format(LHE_file))
22  os.remove(LHE_file)

Variable Documentation

◆ logger

python.algorithms.preprocessors.directory_cleaner.logger = Logging.logging.getLogger("PowhegControl")

Get handle to Athena logging.

Definition at line 9 of file preprocessors/directory_cleaner.py.

vtune_athena.format
format
Definition: vtune_athena.py:14
python.algorithms.preprocessors.directory_cleaner.directory_cleaner
def directory_cleaner(*args)
Clean up the directory before running.
Definition: preprocessors/directory_cleaner.py:13