ATLAS Offline Software
Functions | Variables
python.algorithms.postprocessors.integration_gridpack_creator Namespace Reference

Functions

def integration_gridpack_creator (process)
 Create tarball containing integration grids for future use. More...
 

Variables

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

Function Documentation

◆ integration_gridpack_creator()

def python.algorithms.postprocessors.integration_gridpack_creator.integration_gridpack_creator (   process)

Create tarball containing integration grids for future use.

Tar up integration grids

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

Definition at line 14 of file integration_gridpack_creator.py.

14 def integration_gridpack_creator(process):
15  """! Create tarball containing integration grids for future use.
16 
17  Tar up integration grids
18 
19  @author James Robinson <james.robinson@cern.ch>
20  """
21  output_tarball_name = "integration_grids.tar.gz"
22  file_names = sum([glob.glob(_f) for _f in process.integration_file_names], [])
23 
24 # removing duplicates
25  file_names = list(dict.fromkeys(file_names))
26 
27  if file_names:
28  logger.info("Tar-ing {} integration grids into {}".format(len(file_names), output_tarball_name))
29  for line in subprocess.check_output(["tar", "cvzf", output_tarball_name] + file_names, stderr=subprocess.STDOUT).splitlines():
30  logger.info(line)
31  for file_name in file_names:
32  try:
33  os.remove(file_name)
34  except OSError:
35  logger.warning("... could not clean up {}".format(file_name))

Variable Documentation

◆ logger

python.algorithms.postprocessors.integration_gridpack_creator.logger = Logging.logging.getLogger("PowhegControl")

Get handle to Athena logging.

Definition at line 10 of file integration_gridpack_creator.py.

vtune_athena.format
format
Definition: vtune_athena.py:14
convertTimingResiduals.sum
sum
Definition: convertTimingResiduals.py:55
histSizes.list
def list(name, path='/')
Definition: histSizes.py:38
python.algorithms.postprocessors.integration_gridpack_creator.integration_gridpack_creator
def integration_gridpack_creator(process)
Create tarball containing integration grids for future use.
Definition: integration_gridpack_creator.py:14