On Oct 13, 2021, at 8:41 AM, wade.s...@gmail.com <wade.s...@gmail.com> wrote:I want to clear everything between runs EXCEPT one value that I want to persist.What's a good way to do that?
On Oct 13, 2021, at 10:57 AM, wade.s...@gmail.com <wade.s...@gmail.com> wrote:
--
You received this message because you are subscribed to the Google Groups "netlogo-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to netlogo-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/netlogo-users/28180f1e-1667-4225-ab71-26e3d344a903n%40googlegroups.com.
Late to the party, my own solution to the problem was creating an input box on my interface, wherein I would store a list of all my variables as a list that was turned into a string.
After clearing everything, I would reassign the values to the variables.This works because clear-all doesn't touch any interface variables.to safe-box-in
set safe-box (word
(list
max-seasonality
max-survival-difference
survival-mid-point
max-fecundity-difference
fecundity-steepness
fecundity-mid-point
(word "\"" set-territory-quality "\"")
alpha-value
beta-value
exp-mean
)
)
end
to safe-box-out
let the-list runresult safe-box
set max-seasonality item 0 the-list
set max-survival-difference item 1 the-list
set survival-steepness item 2 the-list
set survival-mid-point item 3 the-list
set max-fecundity-difference item 4 the-list
set fecundity-steepness item 5 the-list
set fecundity-mid-point item 6 the-list
set set-territory-quality item 7 the-list
set alpha-value item 8 the-list
set beta-value item 9 the-list
set exp-mean item 10 the-list
set safe-box ""
endOp woensdag 13 oktober 2021 om 20:19:59 UTC+2 schreef mikaelta...@gmail.com:
To view this discussion on the web visit https://groups.google.com/d/msgid/netlogo-users/0d7d24e2-7b9c-4c1f-84e7-04f7fcea9e2cn%40googlegroups.com.
| Store | Store long-lived string data from the model in the user's browser, in a way that persists between recompiles and reloads, all without without user interaction (unlike send-to:file saving). |
--
You received this message because you are subscribed to the Google Groups "netlogo-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to netlogo-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/netlogo-users/6af06790-bfd1-4526-aee3-9e5a1cbe7716n%40googlegroups.com.