Commit 0abe20c8 authored by caminha's avatar caminha
Browse files

experiment folder in run_multiple.py

parent 4220e2e5
......@@ -27,6 +27,9 @@ parser.add_argument('--singlecpu', '--singlecore', dest='singlecpu', action='sto
parser.add_argument('--runs_per_scenario', "--nruns", metavar='Runs per scenario', type=int, default=30,
help='Number of times the simulation must be run for each scenario')
parser.add_argument('--experiment-group', '--experiment-group', '-g', metavar='Experiment group', type=str,
dest='experiment_folder', help='Folder used to group multiple experiments')
parser.add_argument('--log_to_file', action='store_true',
help="Output log messages to file")
......@@ -42,7 +45,7 @@ parser.add_argument('sim_params', metavar='Others', type=str, nargs=argparse.REM
params = parser.parse_args()
outDir = path.join('experiments', params.name)
outDir = path.join(params.experiment_folder, 'experiments', 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__)), '..'))
......
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