Skip to content

Only emit signal of new value of observable is different from old value#3312

Merged
quaquel merged 2 commits intomesa:mainfrom
quaquel:observables
Feb 15, 2026
Merged

Only emit signal of new value of observable is different from old value#3312
quaquel merged 2 commits intomesa:mainfrom
quaquel:observables

Conversation

@quaquel
Copy link
Copy Markdown
Member

@quaquel quaquel commented Feb 15, 2026

This PR makes a small change to Observable such that it only emits a signal if the new value is different from the old value. This is the expected behavior of an observable. It also closes #3302.

@quaquel quaquel added the bug Release notes label label Feb 15, 2026
@quaquel quaquel marked this pull request as ready for review February 15, 2026 13:48
@EwoutH
Copy link
Copy Markdown
Member

EwoutH commented Feb 15, 2026

Thanks, I assume you want this in 3.5? In that case, please merge ASAP.

@quaquel quaquel merged commit f85da1b into mesa:main Feb 15, 2026
14 of 15 checks passed
@quaquel quaquel deleted the observables branch February 16, 2026 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Release notes label

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DataRecorder Captures Stale Data Due to Redundant Observable Triggers in _advance_time of model.py

2 participants