-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Add save button to CoregistrationUI #10237
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
295d844 to
35d9204
Compare
|
That looks great @hoechenberger! Very explicit now. |
Splitting the changes from mne-tools#10237 into smaller, separate PRs.
This has been extracted from mne-tools#10237 to split that PR into smaller, individual ones.
|
I would not even allow "load from custom location". I would just have "load" and "save". If there are advanced users who really want to use custom locations, they can |
Oh I thought this was a use case in your lab, which was actually the only reason why I added that 😅 But we did have a Load thingie before. So … shall I get rid of it? We auto-load anyway if the file can be found in the standard location. |
I would keep both load and save. Load allows resetting to the file-saved locations for example if you've done some clicking around to change the positions. |
Ah ok, so we keep the ("a") Load button, but don't allow for custom files? We only (re)load from the standard location? Sorry if these questions seem a little trivial, just trying to ensure there's no misunderstanding! |
|
Yeah, I think just load/save buttons that operate on the standard location are probably good enough. |
Got you! Have it working locally but I'm calling it a day for today. PR will be ready tomorrow. |
|
Closing in favor of #10242 |
Screen.Recording.2022-01-23.at.21.07.58.mov
CoregistrationUIgained aSavebutton, which will save the current fiducial selection into the standard locationsubjects_dir/subject/bem/subject-fiducials.fif). It is not possible to pick a custom location. (Will be loaded automatically next time the GUI is started)Loadbutton for fiducials got a more verbose labelDigMontage(instead of a list of dicts, as was done previously) -> should be more robust!_dock_add_file_buttonmethod gained two new parameters,filterto only allow filenames meeting the filter criteria, andinitial_directoryto point the file picker to the specified initial directory. I've adjusted thetransfile pickers accordingly (loading / saving; initial directory for both is now the parent directory of the digitization source)_dock_add_labelnow enables line wrappingCoregistrationclass gained a_fid_filenameattribute to store the filename of the loaded fiducials fileThis was more or less a quick hack to remove a blocker for @SophieHerbst and me.
Things that would need to be addressed in a followup PR:
__init__()into a new method.subjects_dirpicker as well.I also discovered a bug: Loading a(fixed in #10224)transdoesn't automatically apply it (can be seen in the last few seconds of the video)cc @GuillaumeFavelier