wmvanvliet / neuroscience_tutorials

Some tutorials for students of neuroscience
BSD 2-Clause "Simplified" License
107 stars 32 forks source link

Beginner in eeg-erp repository #9

Open jsuria22 opened 1 year ago

jsuria22 commented 1 year ago

Hi, I am stuck with the answer in the eeg-erp repository of beginner.ipynb, and I am trying to figure out what is the solution to that question. I am using Windows and Anaconda 3.

From your questions, it is stated that

  1. The function you want to call is named: read_raw_bdf. It has already been imported.
  2. Call it with a single argument: the name of the file to load. Remember the example sin(2)
  3. The name of the file to load is data/magic-trick-raw.bdf
  4. The name of the file is text. Remember what you know about text and quotation ' marks!
  5. Assign the result to a variable with the name raw using the = symbol.

Here is my answer fortis that question. from mne.io import read_raw_bdf raw = read_raw_bdf('data/magic-trick-raw.bdf')

But the result displayed FileNotFoundError.

wmvanvliet commented 1 year ago

When you're running the notebook on your local machine, you'll also need the EEG data files. You can find them in the "Releases" section of the Github page. For this tutorial you need this file: eeg-erp-data.zip. Unzip it into the folder that also contains the notebooks you are running. It contains the data/magic-trick-raw.bdf file.