-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
ENH: Coreg GUI #9689
ENH: Coreg GUI #9689
Conversation
So IDK what exactly is the issue here but with the transparent skull, I get totally confused because everything seems to be … inverted? Something must be off with the shadows I suppose? Screen.Recording.2021-10-26.at.14.48.59.mov |
Placing fiducials is very slow, is there any chance we can speed this up significantly? Screen.Recording.2021-10-26.at.14.55.22.mov |
Thank you for trying it out @hoechenberger and also for sharing your issues 👍
Do you have the same result with a "
I checked and I do not see any obvious optimization that I can do easily, I have to spend the time to figure it out so I'll note this in #8833
In comparison, this is easily doable. I can use the |
+1 to prevent loading something else than a .fif file for load dig points
unless we already
support more formats?
I think addressing the speed issue can be done in a follow up PR
… |
Yes: Screen.Recording.2021-10-26.at.15.34.23.mov# %%
from pathlib import Path
import mne
sample_dir = Path(mne.datasets.sample.data_path())
fs_subjects_dir = sample_dir / 'subjects'
fs_subject = 'sample'
inst_fname = sample_dir / 'MEG/sample/sample_audvis_1Hz_raw.fif'
trans_fname = sample_dir / 'MEG/sample/sample_audvis_raw-trans.fif'
info = mne.io.read_info(inst_fname)
trans = mne.read_trans(trans_fname)
# %%
mne.viz.plot_alignment(
info=info,
subject=fs_subject,
subjects_dir=fs_subjects_dir,
trans=trans,
meg=False,
eeg=False,
surfaces={
'head-dense': 0.5
}
) Confirmed this behavior with With |
We should just get rid of the "inside head" surface in the new version, it never works/worked that well anyway. With depth peeling the opacity should be enough to make things look correct I think |
Apparently it was caused by a difference with the |
+1 Thanks @GuillaumeFavelier for your work here!! ❤️ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Running:
What I see is: Notice that fiducials are unlocked but all dig points are shown. It should either be in unlocked state with just the MRI fids shown (i.e., if there is no Or it should be in the locked state with all dig points shown, like this: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll add my gripe about lock/unlock separately, in the meantime let's merge this. Awesome work @GuillaumeFavelier !
You made it @GuillaumeFavelier 🚀🙌🍾🍻 |
🍾 🎉 💯 |
This PR adds a
CoregistrationUI
class which acts as the the user interface for coregistration that relies onpyvistaqt
.This is still a work in progress, the UI components are not connected to
Coregistration
yet.GUI API
(incomplete: the connections are not tested)WidgetList
classes to handle connections to a group of widgetsApplication
traitlets
subjects_dir
subject
0.00x
ipywidgets.FileUpload
for_dock_add_file_button
(works for file path, not directory or for saving files)plot_alignment()
mne/commands
Feedback
fit_icp
(ENH: Coreg GUI #9689 (comment))Known bugs
hiding the EEG channels removes one sphere at a time (not a smooth UI feedback)the EEG channels' glyphs cannot be oriented and scaled by the distance (not yet)It's an item from #8833
Current status
qt
ipywidgets
Closes #6995