Nithin
Nithin
Closes #805 ## Problem The previous implementation fetched **ALL images** from the database just to get the updated favourite status of a single image: ```python # BEFORE (Slow - O(n))...
**Describe the bug** The Cell.is_full property compares an integer to None when checking if a cell with infinite capacity is full. This happens because cells default to capacity=None for infinite...
I was building a simple money exchange model where agents on a grid give money to random neighbors. My model kept crashing and I tracked it down to `CellCollection.select_random_agent()` raising...
**Describe the bug** `batch_run()` crashes with `IndexError: list index out of range` when a model uses sparse data collection (collecting data only at specific steps, not every step). The bug...
**Describe the bug** When a grid is completely full and you call `select_random_empty_cell()`, the program hangs forever in an infinite loop. No exception is raised, making it very hard to...
**Describe the bug** The `DEVSimulator.schedule_event_relative()` accepts negative time deltas, causing the simulation clock to rewind backwards. This violates the fundamental principle of time monotonicity in discrete event simulations. **Real-World Scenario:**...
## Describe the bug The `peak_ahead(n)` method in `EventList` iterates directly over the internal heap list (`self._events`), which is **not sorted**. A binary heap only guarantees the minimum element at...
MultiGrid._empty_mask not updated correctly - select_cells(only_empty=True) returns occupied cells
`MultiGrid.place_agent()` and `remove_agent()` do not correctly update the `_empty_mask` array, which causes `select_cells(only_empty=True)` to incorrectly return cells that already contain agents. The root cause is that in `MultiGrid`, the `_empty_mask`...
When removing an agent from `ContinuousSpace`, the internal index mapping (`_index_to_agent`) is corrupted. The code shifts subsequent agents to fill the gap but fails to delete the old index entry...
The `DataCollector` fails to create deep copies of agent-level data when collecting. When an agent reporter returns a mutable object (list, dict, numpy array, etc.), the `DataCollector` stores a reference...