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
Make projection reconstruction public; allow projector selection; add optional forward/rank control #14208
Promote projection reconstruction (_reconstruct_proj()) to a public method and return the reconstructed numerical data through the normal MNE object API then make the plotting call the same public implementation
Allow users to select which projector or projectors to apply.
Optionally accept an mne.Forward or explicit lead field and keep forward=None as the current geometry-based MNE method
Optionally accept an integer reconstruction rank.
This would be helpful for anyone who wants to use the reconstruction outside of the figure. Projector selection would be useful when info has multiple projections. This will help deduplicate code between mne-python and mne-denoise, easier for maintenance and replication. See content below or mne-denoise issue #32.
I did not think about one, I will investigate the mne code further and add more details in the discussion.
Additional context
Currently projection reconstruction is private _reconstruct_proj(), accessible only through plotting options (evoked.plot(proj="reconstruct")). It also applies all projectors stored in info. This is linked to the discussion in mne-denoise issue #32 and builds the SSP-SIR and SOUND implementations in mne-denoise PR #46.
Activity
larsoner commentedon Aug 25, 2026
I think both of those are okay/reasonable changes, feel free to work on this!