rht
rht
This part of the code: https://github.com/projectmesa/mesa/blob/2228b3c11a480c150f262d890ca0cd9e016e684c/mesa/visualization/ModularVisualization.py#L268-L274. I should have linked it from GH instead of copy-pasting it from my local file.
Do you have a sample repo that I can build on to do some experimentation?
OK, thank you! It looks like you have also improved the boid_flockers example. Looking forward to the PR. And also, I think you can also help review the discrepancy in...
From the Boltzmann wealth model example, you can add/remove grid using standard Networkx operation (add_edge, remove_edge), operated on `self.grid.G`.
`.G`, not `.graph`. > I could then implement a single function making the transfer. Can you elaborate what this "transfer" is?
You can't bypass doing `place_agent` one by one because inside that `place_agent` operation, the `agent.pos` needs to be informed of which node id it is located at. Though if you...
Yes, is that a problem? As I said, `agent.pos` needs to know its node id, and you have to do the `place_agent` loop for each agent no matter what.
@BogdanBalcau you can do this: ```python def step(self): self.G.add_node(node_idx) self.G.remove_node(node_idx) self.G.add_edge(from_idx, to_idx) self.G.remove_edge(from_idx, to_idx) ``` Where `self.G` is your networkx object. I haven't tested this. There is a concern that...
We may need to rename `mesa.time` to `mesa.scheduler` for clarity.
I have made a list at least for the scheduler. Scheduling: - [ ] one-shot and repeating schedule MASON manual section 4.3.5: - [x] sim.engine.Sequence. `BaseScheduler` - [x] sim.engine.RandomSequence. `RandomActivation`...