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:
-
Add support for more project content (the "optional" option)
-
Be a bit more clever about handling of type tags
-
Units
-
Commas and whitespace handling in projects attribute
-
What to do if libraries are included more than once?
-
Add some overall elegance
-
Fix the "inbox" problem
|
logger = logging.getLogger('RunConfig')
|
|
host = ' i3-dhcp-172-16-223-198.icecube.wisc.edu '
|
|
__package__ = ' iceprod.core '
|
print usage/help info
- Parameters:
arguments - cmdline args passed to program
|