spindles dection issue #102
-
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 10 replies
-
Hi @chensnbetter . I just tried replicating this issue but everything seemed to work fine for me. The first thing I did was trim the code down to the essentials needed for the spindle detection and ran this: import mne
import pandas as pd
import yasa
raw_fname = "./yasa_example_night_young.edf"
hypno_fname = "./yasa_example_night_young_hypno.csv"
raw = mne.io.read_raw_edf(raw_fname, preload=True)
raw.drop_channels(['ROC-A1', 'LOC-A2', 'EMG1-EMG2', 'EKG-R-EKG-L'])
raw.resample(100)
raw.filter(0.3, 45)
hypno = pd.read_csv(hypno_fname, squeeze=True)
hypno_up = yasa.hypno_upsample_to_data(hypno, sf_hypno=1/30, data=raw)
sp = yasa.spindles_detect(raw, hypno=hypno_up, include=(2, 3)) That worked well for me, spindles were detected. Then I thought maybe some of the other functions might have accidentally been modifying Could you try re-running this with the trimmed down code? Make sure you're up to date on YASA (I'm using YASA |
Beta Was this translation helpful? Give feedback.
-
Strangely, why can I detect slow waves successfully? |
Beta Was this translation helpful? Give feedback.
-
Opened an issue here: #107 Let's move the conversation there |
Beta Was this translation helpful? Give feedback.
Opened an issue here: #107 Let's move the conversation there