-
Notifications
You must be signed in to change notification settings - Fork 943
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
Messed up values in params sweep with BatchRunner #877
Comments
That is a bug. Should be fixed in the next push, which should be relatively soon unless there is an issue in QA/QC. |
@tpike3 thanks for the info, just as a confirmation: this a just a column label issue for the df, right? |
Correct, that is how I understand it |
I still experience this problem, even though I installed the GitHub version of Mesa using |
@tropappar Hmmmm...my understanding is you want the datacollector to be all the items you are collecting during your model runs. What are you collecting with datacollector, I am not seeing that code? As an example form the tutorial
Right now your model reporter is just returning the datacollector object. |
The problem is not about the data collector. |
@tropappar Aww geez, I am sorry I totally missed that, I was rushing. Could you try calling Please let me know if that works for you. |
Yes, it works. But it does not solve the original problem. |
@tropappar there must be a bug in the batchrunner function However as a stop gap you can take the dictionary output and turn that into a pandas dataframe so quick draft psuedoish code....
I appreciate this isn't ideal but hopefully it gets you through the issue. If you happen to figure out the issue in prepare_report_table, I would be happy to review a pull request. |
You can track the next push here: #957 |
Thanks for your feedback. Currently, I can live with this. |
I have no previous experience with BatchRunner, so maybe I am missing something, but I have this params:
and I am calling the BR like:
And I get this df, where parameters sweep is not what it was expected:
It looks like column labels don't match with the column values...
This is the params required in the init of my Model class:
Where am I missing something?
The text was updated successfully, but these errors were encountered: