ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
python.trfReports.trfExecutorReport Class Reference

Class to contain metadata for an executor. More...

Inheritance diagram for python.trfReports.trfExecutorReport:
Collaboration diagram for python.trfReports.trfExecutorReport:

Public Member Functions

def __init__ (self, executor)
 
def python (self, fast=False)
 Get a python representation of executor report. More...
 

Private Attributes

 _exe
 

Detailed Description

Class to contain metadata for an executor.

Definition at line 357 of file trfReports.py.

Constructor & Destructor Documentation

◆ __init__()

def python.trfReports.trfExecutorReport.__init__ (   self,
  executor 
)

Definition at line 358 of file trfReports.py.

358  def __init__(self, executor):
359  self._exe = executor
360 

Member Function Documentation

◆ python()

def python.trfReports.trfExecutorReport.python (   self,
  fast = False 
)

Get a python representation of executor report.

Returns the python representation of this executor

Returns
Python dictionary

Definition at line 364 of file trfReports.py.

364  def python(self, fast = False):
365  reportDict = {'name': self._exe.name,
366  'rc' : self._exe.rc,
367  'validation' : self._exe.isValidated,
368  'statusOK' : self._exe.hasExecuted and self._exe.isValidated and (not bool(self._exe.rc)),
369  'errMsg': self._exe.errMsg,
370  'exeConfig' : {}
371  }
372  # Add executor config information
373  for k, v in self._exe.extraMetadata.items():
374  reportDict['exeConfig'][k] = v
375 
376  # Do we have a logscan to add?
377  if hasattr(self._exe, '_logScan'):
378  try:
379  json.dumps(self._exe._logScan.python)
380  reportDict['logfileReport'] = self._exe._logScan.python
381  except UnicodeDecodeError as e:
382  msg.error('Problem with serialising logfile report as JSON - this will be skipped from the report ({0})'.format(e))
383  reportDict['metaData'] = self._exe._logScan._metaData
384 
385  # Asetup information
386  if hasattr(self._exe, '_asetup'):
387  reportDict['asetup'] = self._exe._asetup
388 
389  return reportDict
390 
391 

Member Data Documentation

◆ _exe

python.trfReports.trfExecutorReport._exe
private

Definition at line 359 of file trfReports.py.


The documentation for this class was generated from the following file:
vtune_athena.format
format
Definition: vtune_athena.py:14
python.MadGraphUtils.python
string python
Definition: MadGraphUtils.py:14
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18
xAOD::bool
setBGCode setTAP setLVL2ErrorBits bool
Definition: TrigDecision_v1.cxx:60