Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

value.shape[1] - tuple index out of range in auditory experiments #279

Closed
danielemarinazzo opened this issue Nov 7, 2024 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@danielemarinazzo
Copy link
Contributor

danielemarinazzo commented Nov 7, 2024

ℹ Computer information

  • Platform OS: Windows
  • Python Version: 3.8
  • Brain Interface Used: Muse2

📝 Provide detailed reproduction steps (if any)

I installed the latest version of the library. I had to separately install click, psychopy, which already is a bit weird. Then I tried to run an experiment. Ok for the visual experiment, not for all of the audio experiments.

✔️ Expected result

experiment starts, runs, finishes.

❌ Actual result

error

  File "C:\Users\dmarinaz\eeg-expy\eegnb\experiments\auditory_ssaep\ssaep_onefreq.py", line 70, in present
    aud1 = sound.Sound(am1, sampleRate=sample_rate)
  File "C:\Users\dmarinaz\.conda\envs\eeg-expy\lib\site-packages\psychopy_sounddevice\backend_sounddevice.py", line 316, in __init__
    self.channels = value.shape[1]  # let this be set by stereo
IndexError: tuple index out of range

Also, I first had to install psychopy-sounddevice, since I got another error saying that it was not installed. The error resides in sounddevice actually.

Also it seems that psychopy is stuck with sounddevice, even using

from psychopy import prefs
prefs.general["audioLib"] = ["ptb"]

directly in the experiment script does not result in ptb being used.

📷 Screenshots

image

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

@danielemarinazzo danielemarinazzo added the bug Something isn't working label Nov 7, 2024
@danielemarinazzo
Copy link
Contributor Author

Closing this for the moment since I managed to make it work choosing muse2_brainflow as device, which is the recommended choice anyway.

@danielemarinazzo danielemarinazzo closed this as not planned Won't fix, can't repro, duplicate, stale Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant