def main(args): simParams = ParamUtils.ParamsFromOptions(args) simConfFiles = args.simConfFiles if args.simConfFiles is not None else \ ["InitModels.conf", "MotionModels.conf", "GenModels.conf", "NoiseModels.conf", "SimModels.conf"] simConfs = ParamUtils.LoadSimulatorConf(simConfFiles) print "Sim Name:", args.simName print "The Seed:", simParams['seed'] theSimulation = SingleSimulation(simConfs, **simParams) SaveSimulation(theSimulation, simParams, simConfs, path=args.directory)
def main(args) : if args.simCnt <= 0 : parser.error("ERROR: Invalid N value: %d" % (args.simCnt)) simParams = ParamUtils.ParamsFromOptions(args, args.multiSim) simConfFiles = args.simConfFiles if args.simConfFiles is not None else \ ["InitModels.conf", "MotionModels.conf", "GenModels.conf", "NoiseModels.conf", "SimModels.conf"] simConfs = ParamUtils.LoadSimulatorConf(simConfFiles) multiParams = dict(simCnt=args.simCnt, globalSeed=simParams['seed'], simName=args.multiSim) MultiSimulation(multiParams, simConfs, simParams, path=args.directory)