NeuroTechX / EEG-ExPy

EEG Experiments in Python
https://neurotechx.github.io/EEG-ExPy/
BSD 3-Clause "New" or "Revised" License
420 stars 124 forks source link

N170 experiment doesn't work #204

Closed Liam-Noah closed 1 year ago

Liam-Noah commented 1 year ago

ℹ Computer information

📝 Provide detailed reproduction steps (if any)

run N170 experiment https://neurotechx.github.io/eeg-notebooks/auto_examples/visual_n170/00x__n170_run_experiment.html#sphx-glr-auto-examples-visual-n170-00x-n170-run-experiment-py

after this line n170.present(duration=record_duration, eeg=eeg_device, save_fn=save_fn) computer freezes I use command line python, and jupyter notebook , the results are the same

I get a black screen, actually 2 of them pyschopy python windows computer stops working properly have to push the shutdown button

in C:\Users...\eeg-notebooks\eeg-notebooks\eegnb\experiments\visual_n170\n170.py it stops at this line mywin = visual.Window([1600, 900], monitor="testMonitor", units="deg", fullscr=True)

update : I've change both function to not require full screen. line 40 and 112. and it works better but now I have multiple screens (3) showing up after I press down space and then at the end of the experiment the file doesn't save

update2 : running it in jupter notebook solved the issue after applying the fix from above

✔️ Expected result

What is the expected result of the above steps? I guess I should see a window and images appearing

❌ Actual result

What is the actual result of the above steps?

see above

📷 Screenshots

Are there any useful screenshots? WinKey+Shift+S (Windows) / Shift+Command+4 (MacOS) and then just paste them directly into the form

oreHGA commented 1 year ago

Hey @Liam-Noah could you try recreating a new environment and then re-installing eeg-notebooks.

When this is done, in your interactive terminal, try running the following to validate the experiment presentation works:

from eegnb.experiments.visual_n170 import n170
n170.present(duration=10)

Let us know if you still run into issues. The example isn't fetching eeg just so we can focus on the stimulus presentation bit.