Home | Trees | Indices | Help |
---|
|
Module for submitting IceTray jobs in the form of Python IceTrayConfig objects.
copyright (c) 2005 the icecube collaboration
Usage:
runconfig.py [options] <file> where options is one or more of --nproc=<number of proceses> : Specify a value to substitute $arg(nproc) --procnum=<process number> : Specify a process number to substitute $arg(procnum) --dataset=<dataset id> : Specify a unique dataset id when in production
Runconfig allows the user (or production system) to substitute values in a generic configuration file with those passed as options in the commandline. This is useful for submitting a number of jobs in which only a few parameters change for each job.
For example one might set a parameter in the configfile like:
<service class='I3SPRNGRandomServiceFactory'> <name>sprngrandom</name> <parameters> <int> <name>NStreams</name> <value>$args(nproc)</value> </int> <int> <name>StreamNum</name> <value>$args(procnum)</value> </int> <int> <name>Seed</name> <value>11</value> </int> </parameters> </service>
then run 'runconfig.py --nproc=2 --procnum=0 config.xml'
Version: $Revision: 1.7 $
Date: $Date: 2005/04/06 17:32:56 $
|
|||
RunConfig |
|
|||
|
|||
|
|||
|
|
|||
logger = logging.getLogger('RunConfig')
|
|||
host =
|
|||
DatasetTypes =
|
|||
SimulationCategories =
|
|||
SupportedTypes =
|
|||
TASK_CHECKSUM_SUFFIX =
|
|||
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 =
|
|||
TASK_UNPACK_INPUT_FAILED = 107
|
|||
TASK_XFER_CONFIG_ERROR = 112
|
|||
TASK_XFER_PROTO_ERROR = 111
|
|||
UndefinedTypeException =
|
|||
UnmetDependencyException =
|
|||
tver =
|
|
print usage/help info
|
|
SimulationCategories
|
SupportedTypes
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Mon May 3 21:25:44 2010 | http://epydoc.sourceforge.net |