Skip to content
Snippets Groups Projects
Commit 56f3f5b7 authored by Kepa Cantero's avatar Kepa Cantero Committed by Manos Angelidis
Browse files

Merged in NRPJP-95 (pull request #12)


[NRPJP-95] Add profiler Flags in the distributed experiment

* [NRPJP-95] Add profiler Flags in the distributed experiment

* [NRPJP-95] profiler option as integer

Approved-by: default avatarUgo Albanese <ugo.albanese@santannapisa.it>
Approved-by: default avatarOmer Yilmaz <yilmazo@in.tum.de>
parent ac3b7bb3
No related branches found
No related tags found
No related merge requests found
......@@ -70,6 +70,8 @@ def launch_cle(argv): # pragma: no cover
help='specify the user Token', required=True)
parser.add_argument('--experiment_id', dest='experiment_id',
help='specify the experiment id', required=True)
parser.add_argument('--profiler', dest='profiler',
help='enabling the profiler in the CLE', required=True)
args = parser.parse_args(argv)
......@@ -107,7 +109,8 @@ def launch_cle(argv): # pragma: no cover
token=args.token,
experiment_id=args.experiment_id,
brain_processes=None,
rng_seed=int(args.rng_seed))
rng_seed=int(args.rng_seed),
profiler=int(args.profiler))
# construct the simulation with given assembly class
from main import simulation
......
......@@ -104,7 +104,8 @@ class NestLauncher(object):
'--timeout={}'.format(timeout_str),
'--rng-seed={}'.format(rng_str),
'--token={}'.format(self._sim_config._token),
'--experiment_id={}'.format(self._sim_config.experiment_id)]
'--experiment_id={}'.format(self._sim_config.experiment_id),
'--profiler={}'.format(self._sim_config.profiler)]
exe = '{python} -u -m hbp_nrp_distributed_nest.launch.main {args}'\
.format(python=sys.executable, args=' '.join(args))
......
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