ATLAS Offline Software
Loading...
Searching...
No Matches
python.PythonConfig Namespace Reference

Classes

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

Functions

 stringPropValue (value)
 indentBy (propValue, indent)

Function Documentation

◆ indentBy()

indentBy ( propValue,
indent )
Helper function used in the configuration printout

Definition at line 384 of file PythonConfig.py.

384def indentBy( propValue, indent ):
385 """Helper function used in the configuration printout"""
386
387 stringValue = str( propValue )
388 result = ""
389 for stringLine in stringValue.split( '\n' ):
390 if len( result ):
391 result += "\n" + indent
392 result += stringLine
393 return result
394
395
396#
397# Declare some unit tests for the code
398#
399

◆ stringPropValue()

stringPropValue ( value)
Helper function producing a string property value

Definition at line 375 of file PythonConfig.py.

375def stringPropValue( value ):
376 """Helper function producing a string property value"""
377
378 stringValue = str( value )
379 if isinstance( value, bool ):
380 stringValue = str( int( value ) )
381 return stringValue
382
383