-
Notifications
You must be signed in to change notification settings - Fork 1.4k
MNT: BackgroundPlotter has no attribute named image #9318
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
Conversation
I'm not sure |
From a quick look at the I'll investigate locally (on TTY with xvfb). |
In the meantime you could push a commit here, that way if it fails here but not locally you can "Rebuild with SSH". Also it would be good to see it fail on some commit here so we know that, if you push a fix, it actually fixes the problem |
Is it just me or no one of those failling examples actually uses BackgroundPlotter? 👀 |
Nevermind, I think I found one |
It passed, how annoying! |
Looking through the actual build log:
Maybe try modifying This is a form of a bug in the PyVista scraper in that, no matter what, it should clear |
I can reproduce locally with:
|
I think I realized the real problem -- when
This is despite me seeing the window up and fully rendered a second or so before getting the error. So I would say there are three problems:
|
Thank you so much for investigating because it was definitely a weird one. Indeed I pinned down the issue between
For the long explanation,
and strangely renamed by:
So, I think calling this |
If it works here, the fix should be ported upstream somehow. |
What do you think @larsoner ? |
My guess is that it's supposed to emit this signal so that on the next paintEvent a render actually gets called (?). So another option is probably just to |
Where? There is already one here: mne-python/mne/viz/backends/_qt.py Line 510 in a921140
|
Ahh seems like it should have taken care of it. I wonder if this has something to do with the delay between when you call So maybe the thing to do is to move the |
Sure, I can move it in |
You should be able to check locally with the |
I did |
Can you touch that example, the 4D phantom BTi example, and the source alignment example in this PR? Would be good to see which of the problems it fixes |
awesome !
… |
Thanks @GuillaumeFavelier ! |
* upstream/main: MNT: BackgroundPlotter has no attribute named image (mne-tools#9318) [MRG, DOC] Remove CSD average reference note (mne-tools#9320)
This PR follows #9313 (comment). For now, I'm trying to understand what is going on exactly.
Closes #9007