ATLAS Offline Software
Public Member Functions | List of all members
python.TransformConfig.JobConfigMetaClass Class Reference
Inheritance diagram for python.TransformConfig.JobConfigMetaClass:
Collaboration diagram for python.TransformConfig.JobConfigMetaClass:

Public Member Functions

def __init__ (self, name, bases, dict)
 

Detailed Description

Definition at line 288 of file TransformConfig.py.

Constructor & Destructor Documentation

◆ __init__()

def python.TransformConfig.JobConfigMetaClass.__init__ (   self,
  name,
  bases,
  dict 
)

Definition at line 289 of file TransformConfig.py.

289  def __init__( self, name, bases, dict ):
290  if '__slots__' not in dict:
291  raise TransformConfigError('Class %s does not have member __slots__. Please add __slots__ = ()'
292  ' to the class definition' % (name,) )
293  #
294  # add list of properties
295  #
296  # first add it to __slots__
297  slots = self.__slots__
298  descrName = '__properties'
299  if descrName not in slots:
300  # add variable
301  slots += ( descrName, )
302  # synchronise dict
303  dict['__slots__'] = slots
304  # then add the list itself
305  setattr(self,descrName,[])
306  descrList = getattr(self,descrName)
307  # set names of properties and add them to the list of properties
308  for n,attrib in dict.items():
309  if isinstance(attrib,Descriptor):
310  setattr(attrib,'_Descriptor__name',n) # noqa: B010 (private property)
311  descrList.append(attrib)
312 
313  type.__init__(self,name,bases,dict)
314 
315 
316 

The documentation for this class was generated from the following file:
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18