Retrieving Coregistration from CoregistrationUI
See original GitHub issueDescribe the new feature or enhancement
I need to programmatically retrieve the coregistration results from CoregistrationUI
after the user has finished coregistration, without requiring them to explicitly save trans
and fiducials
to disk.
Currently, there’s no public API to do so: the Coregistration
instance is stored in the private CoregistrationUI._coreg
– which is overwritten with None
when the CoregistrationUI
window is closed.
Describe your proposed implementation
CoregistrationUI._coreg
should become public as CoregistrationUI.coreg
or CoregistrationUI.coregistration
, and CoregistrationUI._clean()
should not overwrite the Coregistration
instance on window close.
Describe possible alternatives
mne.gui.coregistration()
could return the Coregistration
instance after CoregistrationUI
has been closed, instead of returning CoregistrationUI
. But I believe this would break some workflows. Or wouldn’t even be possible in non-blocking mode…
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (7 by maintainers)
Top GitHub Comments
You’re more than welcome to do so @hoechenberger
I can give this a shot if you don’t mind