pick_channels() is a legacy function

  • MNE version: 1.6.0
  • operating system: Windows 10

I am trying to visualize channels on my code, but I got an error message after running this code.

temp0 =epochs_train.copy().pick_channels([‘F4-M1’])

error: NOTE: pick_channels() is a legacy function. New code should use inst.pick(…)

Please how do I fix this issue? I have looked at MNE resource online, but I am unable to find any guide on fixing this.

Hello, simply do:

epochs_train.copy().pick(["F4-M1"])

Best wishes,
Richard

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.