ATLAS Offline Software
Classes | Functions
python.PythonConfig Namespace Reference

Classes

class  PrivateToolConfig
 
class  PythonConfig
 
class  TestAlgPrivateTool
 Test case for using private tools. More...
 
class  TestAlgProperties
 Test case for the algorithm property handling. More...
 
class  TestAlgTypeAndName
 Test case for the algorithm type/name handling. More...
 

Functions

def stringPropValue (value)
 
def indentBy (propValue, indent)
 

Function Documentation

◆ indentBy()

def python.PythonConfig.indentBy (   propValue,
  indent 
)
Helper function used in the configuration printout

Definition at line 406 of file PythonConfig.py.

406 def indentBy( propValue, indent ):
407  """Helper function used in the configuration printout"""
408 
409  stringValue = str( propValue )
410  result = ""
411  for stringLine in stringValue.split( '\n' ):
412  if len( result ):
413  result += "\n" + indent
414  pass
415  result += stringLine
416  pass
417  return result
418 
419 
420 #
421 # Declare some unit tests for the code
422 #
423 

◆ stringPropValue()

def python.PythonConfig.stringPropValue (   value)
Helper function producing a string property value

Definition at line 396 of file PythonConfig.py.

396 def stringPropValue( value ):
397  """Helper function producing a string property value"""
398 
399  stringValue = str( value )
400  if isinstance( value, bool ):
401  stringValue = str( int( value ) )
402  pass
403  return stringValue
404 
405 
python.PythonConfig.stringPropValue
def stringPropValue(value)
Definition: PythonConfig.py:396
CaloCellPos2Ntuple.int
int
Definition: CaloCellPos2Ntuple.py:24
python.PythonConfig.indentBy
def indentBy(propValue, indent)
Definition: PythonConfig.py:406
str
Definition: BTagTrackIpAccessor.cxx:11