Skip to content

remove add/remove objects for view-range #139

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
merged 3 commits into from
Aug 14, 2022
Merged

Conversation

marsipu
Copy link
Member

@marsipu marsipu commented Aug 14, 2022

Reference issue

Fixes #82

What does this implement/fix?

This fixes an issue where in an interactive python console some Qt-Objects had been deleted if they hadn't been added to the Scene.
Before on every change of X-Range, Qt-Objects for Annotations and Events had been added and removed according to if they appear in this X-Range or not. In early testing this had been proven to be more performant with large sets of Annotations/Events.
This PR removes that and always adds all Qt-Objects for Annotations and Events to the Scene where Qt handles everything then.
With reasonable amounts of Annotations/Events (probably most common usecase) this new solutionis probably as good if not even better.
IMHO running the browser in an interactive python console without issue outweighs a potential benefit the former method had in some rarer cases.

@marsipu
Copy link
Member Author

marsipu commented Aug 14, 2022

@larsoner Are the remaining failing CIs related to some xvfb or similar problems on Ubuntu for older mne-versions?

@hoechenberger
Copy link
Member

Nice, much less code than before!!!!

@marsipu
Copy link
Member Author

marsipu commented Aug 14, 2022

@larsoner Are the remaining failing CIs related to some xvfb or similar problems on Ubuntu for older mne-versions?

I think I solved that one in #140, never mind

@larsoner larsoner merged commit 1096265 into mne-tools:main Aug 14, 2022
@larsoner
Copy link
Member

FYI I added main branch protection rules so auto-merge-when-green should be doable now

@marsipu marsipu deleted the object_gc branch August 26, 2022 23:32
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.

Bug with annotation display: AnnotRegion are deleted?
3 participants