Package iceprod :: Package core :: Module runconfig
[hide private]
[frames] | no frames]

Module runconfig

source code

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 $

Authors:
T. McCauley <tpmccauley@lbl.gov>, Paolo Desiati <paolo.desiati@icecube.wisc.edu>, Juan Carlos Diaz Velez <juancarlos@icecube.wisc.edu>
To Do:
Classes [hide private]
  RunConfig
Functions [hide private]
 
parse_opts(arglist) source code
 
usage(arguments)
print usage/help info
source code
 
main(opts, args, steering=None) source code
Variables [hide private]
  logger = logging.getLogger('RunConfig')
  host = 'periwinkle'
  DatasetTypes = ['TEST', 'BENCHMARK', 'PHYSICS', 'TEMPLATE']
  SimulationCategories = ['CORSIKA-ice-top', 'CORSIKA-in-ice', '...
  SupportedTypes = ['bool', 'int', 'long', 'float', 'double', 's...
  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:'
  UnmetDependencyException = 'Error: Un-met dependency:'
  tver = '$Revision: 1.4 $'
Function Details [hide private]

usage(arguments)

source code 

print usage/help info

Parameters:
  • arguments - cmdline args passed to program

Variables Details [hide private]

SimulationCategories

Value:
['CORSIKA-ice-top',
 'CORSIKA-in-ice',
 'neutrino-generator',
 'JULIeT',
 'simple-generator',
 'WIMP',
 'SuperNova',
 'TWRFilter',
...

SupportedTypes

Value:
['bool', 'int', 'long', 'float', 'double', 'string', 'NaT', 'OMKey']