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 = 'i3-dhcp-172-16-223-198.icecube.wisc.edu'
  __package__ = 'iceprod.core'
Function Details [hide private]

usage(arguments)

source code 

print usage/help info

Parameters:
  • arguments - cmdline args passed to program