diff --git a/mesa/time.py b/mesa/time.py index ca54bab7a70..c4f055eb878 100644 --- a/mesa/time.py +++ b/mesa/time.py @@ -26,6 +26,7 @@ from __future__ import annotations import heapq +import warnings from collections import defaultdict # mypy @@ -379,6 +380,13 @@ def __init__(self, model: Model, time_step: TimeT = 1) -> None: self.event_queue: list[tuple[TimeT, float, Agent]] = [] self.time_step: TimeT = time_step # Fixed time period for each step + warnings.warn( + "The DiscreteEventScheduler is experimental. It may be changed or removed in any and all future releases, including patch releases.\n" + "We would love to hear what you think about this new feature. If you have any thoughts, share them with us here: https://github.com/projectmesa/mesa/discussions/1923", + FutureWarning, + stacklevel=2, + ) + def schedule_event(self, time: TimeT, agent: Agent) -> None: """Schedule an event for an agent at a specific time.""" if time < self.time: