Replies: 4 comments 6 replies
-
|
Beta Was this translation helpful? Give feedback.
-
Sorry if I'm being dense. When you say " |
Beta Was this translation helpful? Give feedback.
-
Yeah, unfortunately the stop condition isn't that simple, and can't be known ahead of time. What I need to do is stuff information in a table every time a particular kind of event occurs, and then retrieve that table at simulation's end. This all works great for model and agent reporters! Just not tables. :( |
Beta Was this translation helpful? Give feedback.
-
Ah, I see. Okay, that might work as a workaround. Question, though: in my model class, at the point where it figures out that the sim is in fact completed, and time to save the dataframe as a csv file, how does it know the simulation "number" (or some other unique ID) of that particular simulation run in the suite? (Otherwise, all the simulations in the batch run would overwrite each others' results in their identically-named .csv file.) @tpike3 mentioned saving the results as " |
Beta Was this translation helpful? Give feedback.
-
The
DataCollector
constructor (Mesa 2.1.5) lets you specify three things: agent reporters, model reporters, and tables.If I use the
batch_run()
function, it returns me a list, which when converted to aDataFrame
, gives the output from all the agent reporters and all the model reporters.But how do I get the output from the tables?
Beta Was this translation helpful? Give feedback.
All reactions