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

Public Member Functions

def __new__ (self, name, bases, dct)
 

Detailed Description

Definition at line 77 of file JobProperties.py.

Member Function Documentation

◆ __new__()

def python.JobProperties._JobPropertyMeta.__new__ (   self,
  name,
  bases,
  dct 
)

Definition at line 78 of file JobProperties.py.

78  def __new__( self, name, bases, dct ):
79  # StoredValue type check
80  try:
81  sv = dct[ 'StoredValue' ]
82  if sv is not None and not _isCompatible( dct[ 'allowedTypes' ], sv ):
83  raise TypeError(
84  'type of StoredValue (%s) not in allowedTypes (%s)' %
85  (type(sv).__name__,dct[ 'allowedTypes' ])
86  )
87  except KeyError:
88  pass
89 
90  # StoredValue value check
91  try:
92  sv = dct[ 'StoredValue' ]
93  if sv is not None and dct[ 'allowedValues' ] and sv not in dct[ 'allowedValues' ]:
94  raise TypeError(
95  'value of StoredValue (%s) not in allowedValues (%s)' %
96  (str(sv),dct[ 'allowedValues' ])
97  )
98  except KeyError:
99  pass
100 
101  return type.__new__( self, name, bases, dct )
102 
103 
104 @functools.total_ordering

The documentation for this class was generated from the following file:
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
python.JobProperties._isCompatible
def _isCompatible(allowedTypes, value)
Definition: JobProperties.py:35
str
Definition: BTagTrackIpAccessor.cxx:11