A class for parsing an IceTray XML configuration and building a Python
IceTrayConfig object.
|
|
SupportedTypes = ['bool', 'int', 'long', 'float', 'double', 's...
|
|
|
VectorTypes = ['boolv', 'intv', 'longv', 'floatv', 'doublev', ...
|
|
|
UnmetDependencyException = 'Error: Un-met dependency:'
|
|
|
fileregex = '[^/]+/private/[^/]+/[^\\.]+\\.cxx'
|
|
|
REGEX = 'AddParameter\\s*\\([^\\)]*\\);'
|
|
|
SERVICEREGEX = '[a-zA-Z0-9_]*.*InstallService\\(.*\\)'
|
|
|
DNREGEX = 'DefaultName\\s*\\(\\s*i\\)\\s*{.+}'
|
|
|
I3LIB_REGEX = re.compile(r'i3_add_library\s*\((.*\n)*')
|
|
|
DEPENDENCY_REGEX = re.compile(r'USE_PROJECTS\s*[^\)]+')
|
|
|
Types = ['short', 'int', 'long', 'double', 'float', 'bool', 's...
|
|
|
NAMELEN = 22
|
|
|
default_value_table = {'NaT': 'NaN', 'bool': 'False', 'double'...
|
|
|
_gid_ = -1
|
|
|
DatasetTypes = ['TEST', 'BENCHMARK', 'PHYSICS', 'TEMPLATE']
|
|
|
SimulationCategories = ['CORSIKA-ice-top', 'CORSIKA-in-ice', '...
|
|
|
TASK_CHECKSUM_SUFFIX = '.md5sum'
|
|
|
TASK_CLEANUP_FAILED = 110
|
|
|
TASK_CONFIGURATION_ERROR = 101
|
|
|
TASK_DATASET_ERROR_ID = -1
|
|
|
TASK_ERROR_ID = -1
|
|
|
TASK_EXTERNS_FAILED = 108
|
|
|
TASK_EXTERN_ITER = -1
|
|
|
TASK_FETCH_INPUT_FAILED = 102
|
|
|
TASK_INVALID = 104
|
|
|
TASK_NOT_FOUND = 103
|
|
|
TASK_RUN_EXCEPTION = 109
|
|
|
TASK_SERVER_ERROR = 105
|
|
|
TASK_STORE_OUTPUT_FAILED = 106
|
|
|
TASK_TRASHCAN_NAME = 'trashcan'
|
|
|
TASK_UNPACK_INPUT_FAILED = 107
|
|
|
TASK_XFER_CONFIG_ERROR = 112
|
|
|
TASK_XFER_PROTO_ERROR = 111
|
|
|
UndefinedTypeException = 'Error: invalid type:'
|
|
|
libs = []
|
|
|
logger = logging.getLogger('tray2xml')
|
|
|
tver = '$Revision: 1.4 $'
|