Commit 4d3c4818 authored by Renato Caminha Juaçaba Neto's avatar Renato Caminha Juaçaba Neto 🙂
Browse files

fix mistake with order of experiment folder

parent 4fb9dc94
......@@ -45,7 +45,7 @@ parser.add_argument('sim_params', metavar='Others', type=str, nargs=argparse.REM
params = parser.parse_args()
outDir = path.join(params.experiment_folder, 'experiments', params.name)
outDir = path.join('experiments', params.experiment_folder, params.name)
logger = nas_utils.setup_logger("RunMultiple", params.loglevel, params.log_to_file, outDir)
if not params.slurm:
chdir(path.join(path.dirname(path.realpath(__file__)), '..'))
......@@ -70,8 +70,8 @@ progressCounter = Value('d', 0.0)
if params.singlecpu:
runners = Pool(1, initializer=nas_utils.runSimulationWorkerInitializer, initargs=(progressCounter,))
else:
runners = Pool(initializer=nas_utils.runSimulationWorkerInitializer, initargs=(progressCounter,))
#runners = Pool(int(mp.cpu_count()/2), initializer=nas_utils.runSimulationWorkerInitializer, initargs=(progressCounter,))
#runners = Pool(initializer=nas_utils.runSimulationWorkerInitializer, initargs=(progressCounter,))
runners = Pool(int(mp.cpu_count()/2), initializer=nas_utils.runSimulationWorkerInitializer, initargs=(progressCounter,))
params.expanded_sim_params = nas_utils.expand_sim_parameters(params.sim_params)
totalRuns = len(params.expanded_sim_params) * params.runs_per_scenario
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment