Closed alivedpac closed 5 months ago
Hi,
Can you please plot the full time-series of one representative channel? I wonder if there are strong artefacts either at the beginning or end of the file that would mess up the calculation of the standard deviation. According to the read_raw_brainvision, the data is parsed with microvolts unit, and then converted internally to Volts to fit the MNE standard. Using units="uV"
should give the correct results, assuming that the scale information in the header of your EEG file is correct.
If the amplitude does not match what you're seeing in the BrainVision software, I would recommend opening an issue in the MNE GitHub instead, since this is not a YASA error per se.
Thanks
Very sorry for the late reply. The problem was on my side (a very basic mistake): not rereferencing to the mastoid electrodes. Additionally, sth didn't work out with accessing the raw data which was solved by using an edf-export. Nevertheless, thanks a lot for your quick reply and help :) Have a great day!
We're tying to read in an .eeg file with the mne read_raw_brainvision function:
raw = mne.io.read_raw_brainvision(eeg_data_path, eog=('EOG_lefup', 'EOG_riglow', 'VEOG'), misc='auto', scale=1, preload=True, verbose=False)
The data works perfectly while running the sleep staging algorithm. Nevertheless, as soon as we want to run sw_detection function we get in troubles regarding the format of the data. This is the code and output of the data.we tried to rescale as you already suggested elsewhere with the following:
now, we have way too big data:
Still, as soon as we try to manually rescale to sensemaking numbers, we don't get any slow waves and only a very low range of data. The data checked in brainvision looks good, so we're really confused.