Automatically increasing Step counter by default #2227
Replies: 5 comments 13 replies
-
Yes, having a simple automatic counter for the number of times model.step has been called it useful.
This question is too broad. I would say that optional advanced time management is desirable (and available in the simulator classes).
Time representation is critical in teaching simulation (and in many ABM courses not handled well IMO). |
Beta Was this translation helpful? Give feedback.
-
I think this should be a very nice thing to have, by default. It should be disable-ble when users want to do it manually. |
Beta Was this translation helpful? Give feedback.
-
Since PR2223 is closed, is this the best place to continue this discussion? I really like the idea of moving away from schedulers or making them more optional. I have no strong preference toward advancing time at the beginning or the end of the |
Beta Was this translation helpful? Give feedback.
-
We're having a call on this subject. Note that some of the discussion continues there: |
Beta Was this translation helpful? Give feedback.
-
this has now been implemented in MESA 3.0 |
Beta Was this translation helpful? Give feedback.
-
This discussion is split of from
steps
counter #2223Background
Currently, Mesa models require manual incrementing of the step counter. Only if a scheduler is used, is
model.scheduler.steps
updated automatically,model._steps
isn't. Calling_advance_time()
currently fulfills this function.The proposal is to increase
model._steps
automatically with each timemodel.step()
method is called.Key Points to Consider
Examples
Current approaches:
or
Proposed approach:
By default, the step is increased by 1.
This can be disabled, by setting
step
toFalse
.A potential implementation is available in #2223.
Questions for Discussion
Beta Was this translation helpful? Give feedback.
All reactions