-
Notifications
You must be signed in to change notification settings - Fork 948
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix batch_run data collection on final step #2588
Conversation
Performance benchmarks:
|
I noticed that some checks are failing in the CI pipeline. I would appreciate it if you could review my PR and guide me on resolving these issues. I’m eager to learn and improve based on your feedback. |
As can be seen by clicking on |
Thanks for guiding @quaquel . I am working on it to fix the issue. |
Let us know if you need help or are stuck on something! |
@satyamlal Where you still planning on completing this? |
@tpike3 I did try to solve the issue sir. But I am unable to fix the and commit my changes, as my code is facing test case issues. So for now I won't be able to work on this. |
I have looked into this and tried to resolve the issues, but I am failing. Part of the problem seems to be that #2514 is not fully diagnosing the issue. Some of it might be due to a mismatch between 0 and 1 based indexing. I am closing this PR. |
Summary
This is a bug where the function of batch_run, in the Mesa framework, is not collecting data on the last step of the simulation. Such an issue is affecting users because they need accurate data collection at the end of the simulation step.
Bug / Issue
The issue is tracked under#2514. Within the batch_run function, DataCollector wasn't collecting information on final step because of incorrect step range logic. The missing data had an appearance in simulations that were more than one step.
Implementation
To resolve this issue, the logic for generating the list of steps for data collection was modified. Specifically:
The line generating steps was changed from: file path: (..mesa\batchrunner.py)
to:
Testing
Everything looks good, and the results are consistent now!
Additional Notes
While working on this issue, I consistently encountered a warning related to the following line:
Despite my efforts, I wasn’t able to identify a solution for this warning. If anyone has insights or suggestions on resolving this, I would greatly appreciate your guidance.