rht
rht
For BatchRunnerMP, you need to do the seeding inside `_run_wrappermp` (this is the function that is executed for each processes), and the seed needs to be different for each processes.
https://github.com/projectmesa/mesa/blob/72efecaacbc612927ff640f699f2cce4c01bc34e/mesa/batchrunner.py#L470
@JonasJosef123 there is one alternative solution: in the data collector, instead of doing `a.foo`, you do `getattr(a, 'foo', None)`. It basically tries to check if `a` has attribute `'foo'`, if...
It's similar to the dictionary method `get` that sometimes you'd want to use: https://stackoverflow.com/questions/11041405/why-dict-getkey-instead-of-dictkey.
@TabernaA does https://github.com/projectmesa/mesa/issues/976#issuecomment-776648380 not answer the problem with defaulting to `None`?
Merged, thank you!
`BatchrunnerMP` is deprecated. You should use `batch_run`. You can import it with `from mesa.batchrunner import batch_run. But we are releasing Mesa 1.0.0 this month, which lets you do ```python import...
1.0.0 instead of 0.10.0, because there is a breaking change with `batch_run` defaulting to 1 CPU.
As per [semantic versioning](https://semver.org/), every time you introduce breaking API changes, you bump the major version. ``` Given a version number MAJOR.MINOR.PATCH, increment the: MAJOR version when you make incompatible...