Hi,
I tried to use find_events to extract trigger events from my MEG trigger channels.
This appears to works. I can raw.plot(events=events) and in the plot everything looks perfect. Then I wanted to crop the data and noticed that the events array appears to be incorrect. I can see that the entries in the events array go beyond the length of my data. I can see that the first trigger is actually at 4.663 seconds. However find_events places the first event at 37423. After that all times are correct, but time shifted. It looks like all time indices in the events array are shifted as if one had added 32760 to each time stamp.
I can “fix” this doing something like:
events[:, 0] -= 32760
but why is this happening? When I do this, the plot then shows incorrectly placed triggers, but this events array then works. I wonder how I can proceed now. Am I doing something wrong here or is there really an error with find_events?
Any help is greatly appreciated. Thanks!
system info:
mne.sys_info()
Platform: macOS-13.5.1-arm64-i386-64bit
Python: 3.10.8 | packaged by conda-forge | (main, Nov 22 2022, 08:25:29) [Clang 14.0.6 ]
Executable: /Applications/MNE-Python/.mne-python/bin/python
CPU: i386: 10 cores
Memory: 32.0 GB
mne: 1.3.1