You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add time-source fallback mechanism for ContinuousObservable
Implement flexible time retrieval in ContinuousObservable to work with different Mesa time management approaches. The _get_time() method tries multiple sources in priority order:
1. model.simulator.time (DEVS/continuous models)
2. model.time (if explicitly set)
3. model.steps (fallback for discrete models)
This workaround enables ContinuousObservable to function correctly regardless of whether a model uses discrete event simulation, custom time tracking, or standard step-based progression.
Obviously this should be fixed structurally. See #2228
0 commit comments