def runWithJsonFile(expJsonFilePath, options, outputLabel, permWorkDir):
 if ('verbosityCount' in options):
  verbosity = options['verbosityCount']
  del options['verbosityCount']
 else:
  verbosity = 1
 _setupInterruptHandling()
 with open(expJsonFilePath, 'r') as jsonFile:
  expJsonConfig = json.loads(jsonFile.read())
 outDir = os.path.dirname(expJsonFilePath)
 return runWithConfig(expJsonConfig, options, outDir=outDir, outputLabel=outputLabel, permWorkDir=permWorkDir, verbosity=verbosity)

def runWithJsonFile ( expJsonFilePath , options , outputLabel , permWorkDir ) : if ( 'verbosityCount' in options ) : verbosity = options [ 'verbosityCount' ] del options [ 'verbosityCount' ] else : verbosity = 1 _setupInterruptHandling ( ) with open ( expJsonFilePath , 'r' ) as jsonFile : expJsonConfig = json . loads ( jsonFile . read ( ) ) outDir = os . path . dirname ( expJsonFilePath ) return runWithConfig ( expJsonConfig , options , outDir = outDir , outputLabel = outputLabel , permWorkDir = permWorkDir , verbosity = verbosity )
starts a swarm .