Reputation: 1894
I was wondering if there is any way to have a predefined name for behaviorspace result column name, for example if one of the outputs is count agents with [some condition]
, instead of Count agents with [some condition]
column name be The condition
.
Currently I have defined a global variable with my desired column name and I update it at the end of experiment run, but if my experiment ends with an error, I will get zero instead of that variable. Is there any other way for having proper column name?
Thanks :)
Upvotes: 1
Views: 929
Reputation: 30488
Define a procedure:
to-report the-condition
report count agents with [...]
end
then in the BehaviorSpace experiment, change the metric to the-condition
.
Upvotes: 1