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
when doing raw.plot(), the annotation window does not close even if the main browser is closed. Attempting to close that window throws a spurious error:
Now press 'a' to open the annotation window, then draw an annotation, then attempt to close the main window. It does not close the annotation window. Next, try to close the annotation window to get the error.
Expected results
The annotation window should close when the main window closes and there should not be any error.
@jasmainak Ok, this looks like qt-browser seems to have a bug too related to closing the Settings-Dialog. Maybe you could open an issue about that at mne-qt-browser?
humm ... acually that gives a different error than the one I got. I posted that on the mne-qt-browser github along with another issue I had. I haven't been able to reproduce the error above again. I'll post back if I manage to do that
Activity
agramfort commentedon Mar 23, 2022
jasmainak commentedon Mar 23, 2022
I was using
ipython --matplotlibbut I just checked and the error can be reproduced also onipython --matplotlib=qthoechenberger commentedon Mar 25, 2022
I think @agramfort wanted to know whether you are using the good old Matplotlib-based GUI or the fancy new one, which is our new default in MNE 1.0
agramfort commentedon Mar 25, 2022
I can replicate the pb. I tried to investigate. For me these lines
https://github.com/mne-tools/mne-python/blob/main/mne/viz/_figure.py#L423
should do the job.
@marsipu any idea?
marsipu commentedon Mar 25, 2022
Child figures are handled by each browser-backend (matplotlib, qt) individually:
matplotlib
mne-python/mne/viz/_mpl_figure.py
Line 782 in 8fde21e
mne-python/mne/viz/_mpl_figure.py
Line 103 in 8fde21e
qt
https://github.com/mne-tools/mne-qt-browser/blob/c0a7d32259c13097dbd0f2553725ba7049c83b3e/mne_qt_browser/_pg_figure.py#L1492
https://github.com/mne-tools/mne-qt-browser/blob/c0a7d32259c13097dbd0f2553725ba7049c83b3e/mne_qt_browser/_pg_figure.py#L1529
But since a separate window for annotations by pressing
aonly occurs for thematplotlib-backend I think this bug is specific formatplotlib.jasmainak commentedon Mar 26, 2022
Oh, I didn't realize the Qt-based browser was also available now. Just gave it a shot and it's super nice!
But I do get a similar error:
not quite sure what sequence of operations led to it though.
Also it doesn't allow me to see the time instant by clicking as in the matplotlib browser
marsipu commentedon Mar 26, 2022
@jasmainak Ok, this looks like qt-browser seems to have a bug too related to closing the Settings-Dialog. Maybe you could open an issue about that at mne-qt-browser?
jasmainak commentedon Mar 29, 2022
humm ... acually that gives a different error than the one I got. I posted that on the mne-qt-browser github along with another issue I had. I haven't been able to reproduce the error above again. I'll post back if I manage to do that
hoechenberger commentedon May 5, 2022
@jasmainak has this meanwhile been resolved?
fix mne-tools#10454
FIX: closes mne-tools#10454
Fix orphaned annot window (mne-tools#10776)