Skip to content

On time info updated #133

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

alejoe91
Copy link
Member

@alejoe91 alejoe91 commented May 21, 2025

This PR introduces a new time_info_updated signal, with notifiers and on_ functions. This is mainly used to synchronize times between the controller (which now has a self.time_info) the TraceView and TraceMapView.
All self.seg_index, self.time_by_seg has been replaced by calls to the controller get_time* functions.
The on_time_info_updated syncs the views and widgets to the time info in the controller.

@alejoe91 alejoe91 requested a review from samuelgarcia May 21, 2025 15:28
Comment on lines +224 to +228
self._block_auto_refresh_and_notify = True
self._qt_change_segment(seg_index)
self.timeseeker.seek(time)

self._block_auto_refresh_and_notify = False
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@samuelgarcia I added this self._block_auto_refresh_and_notify to block any signal and refresh. I tested and there are no recursive refreshes (only 1 per call).

Actually, for QT, when updating the trace, also tracemap needs a refresh because no refresh is triggered when the tab/view becomes active. In Panel, the refresh is not needed since the view is refreshed when selected

@samuelgarcia samuelgarcia merged commit 7f59b74 into SpikeInterface:dev_multi_backend May 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants