-
Notifications
You must be signed in to change notification settings - Fork 878
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
Document possible agent reporter inputs in the datacollector #1837
Comments
I checked the code. I can't find any that implements
in the latest main. |
I found it in Line 179 in d40bc5b
multiprocessing ?
|
I would be fine with removing the "Functions with parameters placed in a list" behaviour by the way, as long as we keep the syntax for agent_reporters and model_reporters identical (and thus remove it from both). |
I agree with removing it in both agent and model reporters. I haven't compiled the list of breaking changes for Mesa 3.0 yet. |
Then I would propose removing it for the agent-reporter immediately, and adding a deprecation warning to the model-reporter ASAP. To summerize, we propose to remove method nr 4 as it's practically identical to nr 1.
@tpike3 @jackiekazil @Corvince curious what you think. |
Agree with removing #4, but I think #1 and #2 are also the same, unless I am missing something. I would say removing #4 leaves us with two possibilities: either as an attribute string or a function-like object that takes either |
Got a question that's related to #4. If a function has extra parameters, how should it be used in reporters? For example for agent reports def some_func(agent, param_1, param_2):
result = ... # do something with agent and parameters
return result should it be used like this from functools import partial
agent_reporters = {
"reported_value": partial(some_func, param_1=some_value, param_2=some_other_value)
} |
Sorry for the delay, but yes @rht reason was because of pickling issue for |
Currently in the data collector documentation its defined very well which inputs model reporters can take:
mesa/mesa/datacollection.py
Lines 82 to 100 in d40bc5b
However, this isn't done for the agent reports. Could this documentation be added?
The text was updated successfully, but these errors were encountered: