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 287 of file TransformConfig.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 288 of file TransformConfig.py.

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

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