ATLAS Offline Software
Classes | Functions | Variables
python.ConfigFactory Namespace Reference

Classes

class  ConfigFactory
 
class  FactoryBlock
 

Functions

def getDefaultArgs (func)
 
def getFuncArgs (func)
 

Variables

 logCPAlgCfgFactory = logging.getLogger('CPAlgCfgFactory')
 

Function Documentation

◆ getDefaultArgs()

def python.ConfigFactory.getDefaultArgs (   func)
return dict(par, val) with all func parameters with defualt values

Definition at line 25 of file ConfigFactory.py.

25 def getDefaultArgs(func):
26  """return dict(par, val) with all func parameters with defualt values"""
27  signature = inspect.signature(func)
28  return {
29  k: v.default
30  for k, v in signature.parameters.items()
31  if v.default is not inspect.Parameter.empty
32  }
33 
34 

◆ getFuncArgs()

def python.ConfigFactory.getFuncArgs (   func)
return list of input parameters

Definition at line 35 of file ConfigFactory.py.

35 def getFuncArgs(func):
36  """return list of input parameters"""
37  if inspect.isclass(func):
38  args = list(inspect.signature(func.__init__).parameters.keys())
39  args.remove('self')
40  else:
41  args = list(inspect.signature(func).parameters.keys())
42  return args
43 
44 
45 # class for config block information

Variable Documentation

◆ logCPAlgCfgFactory

python.ConfigFactory.logCPAlgCfgFactory = logging.getLogger('CPAlgCfgFactory')

Definition at line 22 of file ConfigFactory.py.

python.ConfigFactory.getDefaultArgs
def getDefaultArgs(func)
Definition: ConfigFactory.py:25
python.ConfigFactory.getFuncArgs
def getFuncArgs(func)
Definition: ConfigFactory.py:35
histSizes.list
def list(name, path='/')
Definition: histSizes.py:38