Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add setup button to interaction.jl #920

Open
VegemiteEnjoyer opened this issue Nov 9, 2023 · 0 comments
Open

Add setup button to interaction.jl #920

VegemiteEnjoyer opened this issue Nov 9, 2023 · 0 comments
Labels
enhancement New feature or request plotting

Comments

@VegemiteEnjoyer
Copy link

Issue:
Currently, resetting an interactive model through the reset button returns the state of the simulation to the state of a previously saved deepcopy(SingleContainerABM).
Hence, params passed to abmexploration and by extension abmplots cannot vary ABM field such as the number of agents.

Recommendations from the Julia slack group:
A setup button analogue to those found in similar ABM software to reset the ABM completely, by reading the current values of params when they differ from the original value of the fields in the SingleContainerABM.

Working solution:
The main issue I see is that currently, the model struct is passed to abmexploration already built, hence interactions has no way to reconstruct the ABM in case any of the fields in SingleContainerABM.
So far, my working idea is that a setup button inherits the behavior of reset by default.
Additionally a reset function can be passed to abmexploration/abmplot to reconstruct the ABM with default values, that are overwritten by current values inparams where relevant.

As mentioned in slack, I'm happy to work on this feature and eventually submit a pull request.
Also, definitely let me know if my approach is obsolete/too roundabout - I'm rather new to Julia.

@Tortar Tortar added plotting enhancement New feature or request labels Nov 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request plotting
Projects
None yet
Development

No branches or pull requests

2 participants