Closed chapuisk closed 2 months ago
Sorry -- I don't understand the issue. When I launch both experiments, I have the same result, with the difference that one is name supercoolname
and not the other, but the parameter nb
is displayed in both cases.
@AlexisDrogoul if you change the value of the parameter in UI and reload simulation, the value won't change in the supercoolname simulation !
Actually, if one moves the create simulation
to a reflex in the experiment, the simulation is (correctly) recreated with a value of 10
when the experiment is relaunched, but after that, at each step, it is created with 0. So the problem is that it seems to be the call to create
that does not take into account the UI parameters.
I have identified and -- normally -- fixed the problem in https://github.com/gama-platform/gama/commit/9d1a9d435c04e70d862dbae6fd1996c88adcbfd2. Please test as this is quite a sensitive area !
Describe the bug When the experiment explicitly overload the
_init_
action to create a simulation parameters are not working anymore. It may be relatated to discussion #63To Reproduce copy-past this simple example model:
launch both experiment edit: change the value of
nb
in the parameter panel Reload the simulation variablenb
do not change with explicit init actionExpected behavior either to warn modeler or to turn parameter active even with explicit init action in experiment
Additional context hence, all parameter of the pedestrian model examples are disable