--
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 visit https://groups.google.com/d/msgid/netlogo-users/69a6a610-f3eb-4f99-98dd-ebe0d1ac1ce7n%40googlegroups.com.
Hi Maxence,
I don’t see where your error is, but the message “LPUT expected input to be a list but got the number 0 instead.” Is consistent with the value of final-times having the default value 0. This could happen if it hadn’t been initialized, or was cleared by a command like clear-all or clear-globals. Since you use set with final-times it seems to be a global variable. Maybe something is going wrong in the go procedure.
Since you are new to NetLogo, it is probably worth trying to debug this by yourself. A basic technique is to print the value of a variable at various points to check whether it is changing as you expect.
You can find out about output commands such as print in the output section of the Programming Guide.
Alternatively, you can share more of your code.
- Aaron
--
Aaron Brandes, Software Developer
Center for Connected Learning and Computer-Based Modeling
--