MRG, ENH: Add warning about bad whitener conditioning#8805
MRG, ENH: Add warning about bad whitener conditioning#8805larsoner merged 7 commits intomne-tools:mainfrom
Conversation
|
@larsoner Thanks, I couldn't test it so far, but I was just thinking: should we maybe even raise by default? Because this is a serious issue that will typically blow up your entire analysis, right? |
|
This is just a heuristic, AFAIK it's not guaranteed to work. There might be realistic cases that trigger the warning, so I don't want to raise an error. |
|
@larsoner Ok, fair enough! |
|
Hi @larsoner, Now, I am not sure I would have known what to do about it before our discussion. [While testing this I realized that the interactive console in VS code had all warnings disabled per default, so I might have missed them - thankfully I found a workaround now with @hoechenberger's help.] |
|
Reworded and added to |
|
yep, it is clear now @larsoner |
|
on_rank_mismatch?
as it's not used all the time on a rank function from the public API.
… |
|
Failures are just #8819 so I'll go ahead and merge |
* upstream/main: MRG, ENH: Add warning about bad whitener conditioning (mne-tools#8805) MRG, MAINT: Deprecated param and pytest-qt (mne-tools#8808) fix mne.viz.plot_topomap with some missing grad in a pair (mne-tools#8817) [MRG] Coregistration-GUI: use *.mff as digitization source (mne-tools#8790) FIX: Path [MRG] ENH EGI MFF reader: populate info['dig'] (mne-tools#8789) MRG: Improve Brain UX (mne-tools#8792) FIX missing Axes3D import in viz._3d._plot_mpl_stc (mne-tools#8811) Better error message if configured download folder doesn't exist (mne-tools#8809) MRG, ENH: Add support for other formats to browse_raw (mne-tools#8807) MRG, BUG: Allow depth > 1 (mne-tools#8804)
|
Thank you, @larsoner!! |
Attempt to address https://mne.discourse.group/t/strange-source-activity-with-lcmv-beamformer-in-volume-source-space-empty-room-covariance/2549
@SophieHerbst @hoechenberger can you see if this warns when you try your beamforming script? If not can you send me an evoked file to use? This was my testing script since I didn't have one:
Details
And it now produces for me a nice warning, which I line-wrap here:
The error is also there for me on
main.