- MNE version: 1.8.0
- operating system: Windows 10
Hello everyone,
I’m using MNE to load data from an EEG recording containing task events, and data from an intracranial recording (coming from DBS electrodes). My aim is to synchronize them together, in order to transfer the task events from the EEG to the DBS recording, and then save each files with the events as .SET files.
The sampling frequency of the system acquiring the DBS data is unfortunately not correct (always rounded to 250.0Hz, which is inaccurate: it fluctuates from one recording to another around 250Hz but can be 249.9917…Hz for example, and this difference actually matters for 30min experiments).
By synchronizing my data together I can actually find out the real sampling frequency of each DBS dataset. But my problem is that once the DBS datas are loaded through MNE, I can’t change the info[“sfreq”], nor the raw.times. I know this is for safety reasons, but in my case it is actually to correct the mistake of the device.
Is there any way to update the sampling frequency or the time array of my MNE object before saving it to .SET for analysis?
(I could share the code of the whole synchronization pipeline but it’s roughly 2000 lines, that’s why I’m not attaching it to the post)
Thank you for your help!