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
{{ message }}
Repository navigation
Allow blocking execution of plot_alignment() and stc.plot() #10221
The alignment and the Brain plots are both used in interactive exploration and in non-interactive scripts.
A common annoying issue that I and other users regularly run into is that we write a short script that displays the sensor alignment or a SourceEstimate, run it (e.g. via the Run button in VS Code), the window pops up – and immediately disappears. So one then needs to run the script again -- this time, with python -i or after inserting some blocking call like input().
It would be great if there was an easier way to ensure a blocking behavior.
In the coreg app, we have a standalone parameter which control that. We could add the same to Brain? But adding yet another one to plot_alignment might be too much.
backward-compat... Honestly, the new version of coreg has not been around for so long, I don't know if people had really the time to play around with the standalone parameter. I still think the change is worth it for consistency (just a rename in practice). But I understand your point.
Activity
GuillaumeFavelier commentedon Jan 19, 2022
In the coreg app, we have a
standaloneparameter which control that. We could add the same toBrain? But adding yet another one toplot_alignmentmight be too much.hoechenberger commentedon Jan 19, 2022
I was more thinking of something like
block, which we have for our matplotlib plotting functions tooGuillaumeFavelier commentedon Jan 19, 2022
I do not mind changing the name if it does the same thing.
hoechenberger commentedon Jan 19, 2022
standaloneis fine for Coreg, I think. Just for the others – if we add this functionality, I think it should beblock. :)GuillaumeFavelier commentedon Jan 19, 2022
Why keeping coreg as the only exception?
hoechenberger commentedon Jan 19, 2022
To avoid discussions about backward-compat ;) I don't care enough about this one to discuss 😅😅😅😅😅
GuillaumeFavelier commentedon Jan 19, 2022
backward-compat... Honestly, the new version of coreg has not been around for so long, I don't know if people had really the time to play around with the
standaloneparameter. I still think the change is worth it for consistency (just a rename in practice). But I understand your point.hoechenberger commentedon Jan 19, 2022
Ah ok! Thought we'd always had this param. In that case – let's block it 😁👌
GuillaumeFavelier commentedon Jan 20, 2022
#10222 is merged but the case of
plot_alignmentis still open.