Aman Bihari

Results issues of Aman Bihari

Pathfinding for adding stacked spaces architecture to Mesa. This builds upon the foundational ideas discussed in #2585 and #3458. 1. It introduces a bidirectional sync mechanism allowing agents to seamlessly...

### Summary This PR introduces `HexGridMovingAgent` to `mesa.discrete_space.cell_agent` to support movement on hexagonal grids. It also updates the documentation in `mesa.discrete_space.grid` to clarify the specific hexagonal geometry used (Even-R). ###...

feature
GSoC: Not ready

While I was working on implementing a model using HexGrid. I discovered that the current Grid2DMovingAgent implementation is strictly coupled to orthogonal grids (Moore/Von Neumann) and breaks when used with...

I've been looking into the FIXME in `discrete_space/cell.py` regarding the caching strategy for get_neighborhood. ```Python 158 # FIXME: Revisit caching strategy on methods 159 @cache # noqa: B019 160 def...

There is a race condition in `SpaceRenderer._map_coordinates `when rendering NetworkGrid environments. Currently, the method uses `contextlib.suppress(IndexError)` to handle cases where an agent's node index exceeds the bounds of the cached...

### **What's the problem this feature will solve?** The `PropertyLayer` class in `mesa/discrete_space/property_layer.py` is currently an overly complex wrapper around a standard NumPy array. This complexity is noted in an...

The `AgentSet` class, which serves as the core container for `model.agents` and other groups, is backed by a `weakref.WeakKeyDictionary`. This design choice ensures that if an agent is deleted elsewhere...

This code block is really confusing me https://github.com/mesa/mesa/blob/b6e96d1351c756c6ba7ef5de35a380f63d3700df/mesa/model.py#L122-L127 It uses a `try-except` block to handle compatibility issues but the logic fails to capture the seed value in the successful cases....

*This is a tracking issue(See #3128 and #3160 for more)* The current `AgentSet` implementation relies on `WeakKeyDictionary` for storage. While memory-efficient, this approach introduces performance overheads. To solve this fundamentally,...

**Describe the bug** In the new DES architecture, the experimental `DataRecorder`(#3145) exhibits an "off-by-one" recording error where it permanently captures the "past" state of the model. It records the state...