def runWithConfig(swarmConfig, options, outDir=None, outputLabel='default', permWorkDir=None, verbosity=1):
 global g_currentVerbosityLevel
 g_currentVerbosityLevel = verbosity
 if (outDir is None):
  outDir = os.getcwd()
 if (permWorkDir is None):
  permWorkDir = os.getcwd()
 _checkOverwrite(options, outDir)
 _generateExpFilesFromSwarmDescription(swarmConfig, outDir)
 options['expDescConfig'] = swarmConfig
 options['outputLabel'] = outputLabel
 options['outDir'] = outDir
 options['permWorkDir'] = permWorkDir
 runOptions = _injectDefaultOptions(options)
 _validateOptions(runOptions)
 return _runAction(runOptions)

def runWithConfig ( swarmConfig , options , outDir = None , outputLabel = 'default' , permWorkDir = None , verbosity = 1 ) : global g_currentVerbosityLevel g_currentVerbosityLevel = verbosity if ( outDir is None ) : outDir = os . getcwd ( ) if ( permWorkDir is None ) : permWorkDir = os . getcwd ( ) _checkOverwrite ( options , outDir ) _generateExpFilesFromSwarmDescription ( swarmConfig , outDir ) options [ 'expDescConfig' ] = swarmConfig options [ 'outputLabel' ] = outputLabel options [ 'outDir' ] = outDir options [ 'permWorkDir' ] = permWorkDir runOptions = _injectDefaultOptions ( options ) _validateOptions ( runOptions ) return _runAction ( runOptions )
starts a swarm .