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

Module exe

source code

Classes [hide private]
  RunInstance
  RunInstanceDAG
Functions [hide private]
 
fetch_tarball(meta, tmpstorage='/tmp/juancarlos_icesoft', basedir='.') source code
 
tail(logpath, chars=75)
Read log4cplus to write output logging
source code
 
set_sig_handler(run, procnum, dataset, passkey)
install signal handler to handle errors and evictions
source code
 
create_workspace(work, top) source code
 
clean_workspace(top, work) source code
 
safe_abort(abortfunc, args, msg='', tries=4, wait=2) source code
 
wget(url, dest='./') source code
 
checksum(sum1, sum2) source code
 
isurl(url) source code
 
setplatform(platform)
Set platform information from system and format it according to icetray standard
source code
 
getplatform(reset=False, legacymode=False)
Get platform information from system and format it according to icetray standard
source code
 
next_platform(plat)
Get next platform tag
source code
 
myputenv(name, value) source code
 
unpack(exclude=[]) source code
Variables [hide private]
  _platform = None
  _inventory = 'sp_outfile_inventory.list'
  _done = False
  _clean = True
  EVICTED = 1
  FAILED = 2
  python_version = '2.4'
  _child = 0
  _baseurl = 'http://icecube.wisc.edu/simulation/downloads'
  _tmpstorage = '/tmp/juancarlos_icesoft'
  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:'
  VectorTypes = ['boolv', 'intv', 'longv', 'floatv', 'doublev', ...
  tver = '$Revision: 1.4 $'
Function Details [hide private]

tail(logpath, chars=75)

source code 

Read log4cplus to write output logging

Parameters:
  • logpath - path to logfile
  • chars - number of characters end of file
Returns:
last n characters in file

set_sig_handler(run, procnum, dataset, passkey)

source code 

install signal handler to handle errors and evictions

Parameters:
  • run - RunInstance
  • procnum - process number within dataset
  • dataset - dataset id
  • passkey - random passkey assigned to process by daemon

getplatform(reset=False, legacymode=False)

source code 

Get platform information from system and format it according to icetray standard

Returns:
plaform string

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']

VectorTypes

Value:
['boolv', 'intv', 'longv', 'floatv', 'doublev', 'stringv', 'OMKeyv']