Event-less Dataset: Creation of epoch

epochs = mne.Epochs(edf_h01_r_hf, events, tmin=-0.2, tmax=0.5, preload=True)
expected result :epoch created
Actual Result : TypeError: events should be a NumPy array of integers, got <class ‘numpy.ndarray’>

  • MNE-Python version: 0.23.0
  • operating system: Windows 10

Did Alex’s comment (creating epoches without event · Issue #9470 · mne-tools/mne-python · GitHub) solve your problem or do you need further help?