Skip to content

Commit

Permalink
fixed auditory oddball experiment to run on macos for intel, arm is n…
Browse files Browse the repository at this point in the history
…ot yet supported.
  • Loading branch information
pellet committed Dec 17, 2024
1 parent e6dc15e commit f57e9f3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
8 changes: 7 additions & 1 deletion eegnb/experiments/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
from .visual_n170.n170 import VisualN170
from .visual_p300.p300 import VisualP300
from .visual_ssvep.ssvep import VisualSSVEP
from .auditory_oddball.aob import AuditoryOddball

# PTB does not yet support macOS Apple Silicon,
# this experiment needs to run as i386 if on macOS.
import sys
import platform
if sys.platform != 'darwin' or platform.processor() != 'arm':
from .auditory_oddball.aob import AuditoryOddball
5 changes: 0 additions & 5 deletions eegnb/experiments/auditory_oddball/aob.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@
from pandas import DataFrame
from psychopy import prefs

# PTB does not yet support macOS Apple Silicon, need to fall back to sounddevice.
import sys
if sys.platform == 'darwin':
prefs.hardware['audioLib'] = ['sounddevice']

from psychopy import visual, core, event, sound

from time import time
Expand Down

0 comments on commit f57e9f3

Please sign in to comment.