Dear Community,
I have a problem with one of the mne-nirs specific functions, specifically the function called “peak_power”. I hope that some experienced mne-nirs user can help me! Maybe @rob-luke ?
- MNE version: 1.6
- MNE-NIRS version: 0.6
- operating system: Windows 11
This is my dataset:
Here is my minimal working example:
import mne
import mne_nirs
snirf_path = "test.snirf"
raw_intensity = read_raw_snirf(fname=snirf_path, verbose=False)
raw_od = optical_density(raw_intensity)
raw_od.plot(n_channels=40, duration=300, show_scrollbars=False);
As you can see there exists data for all 40 channels.
Now I run the peak_power function for the data and visualize the results.
raw_od, scores, times = mne_nirs.preprocessing.peak_power(raw_od, threshold=0.1)
plot = mne_nirs.visualisation.plot_timechannel_quality_metric(raw_od, scores, times, threshold=0.1)
As you can see the last 19 channels all get a peak power value of 0 for all time windows. Can you help me find the cause?
Thank you in advance!
Regards