-
Notifications
You must be signed in to change notification settings - Fork 125
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
Issue initializing Muse2 on MacOs #132
Comments
Hi @pjkohler - Do you mind giving this a shot again? We have made recent changes that should attempt to fix this |
of course! how do I update? |
thanks! here are some steps to try
lmk if you have any questions |
ignore previous comment (that I deleted), I realize now I also have to start the stream in uvicMuse, before running eeg-notebooks. |
The muse is connected and streaming, I can data from it using LabRecorder software. |
Hi Peter. Have you tried the brainflow option? Device name for native Bluetooth with brainflow is 'muse2_bfn'. |
Relevant info re: OS compatibility etc here https://brainflow.readthedocs.io/en/stable/SupportedBoards.html#muse |
I haven't. Brainflow would be used to initialize the stream, right? |
ah, I misunderstood ... maybe I misunderstood the whole approach you take here. There is no need to initialize the stream ahead of time, is there? I can simply pass "muse2_bfn" as the device name, and then your code will take of the rest, right? It appears so. I was able to get some data, and will continue to debug. |
okay, this is pretty awesome. Thanks @JohnGriffiths, @oreHGA, everyone. I will use this in my class on Tuesday, and a lot more in future courses! Also, for some reason, not sure why, I do not have to run |
Great to hear this is working well for you Peter! You misunderstanding is very understandable: we are using brainflow differently to how muselsl and BlueMuse are have been used in BrainFlow is a relatively new library that does a great job of handling data streams across a wide variety of devices. They added muse support just after Xmas, and so we are gradually moving over to that ( mainly `_bfn' ) as the default / recommended streaming option, whilst continuing to keep the others available. You should also check out the CLI if you haven't yet: type
and follow the options. Finally, since you mentioned your class, here is a minimal https://github.com/GriffithsLab/muse-aob-tms/blob/main/code/run_aob_task.py If you configure the 'run with' option in windows/mac to the correct python environment binary, then this can run a complete experiment - including stream initiation and data saving - with a simple double-click of a desktop icon. In windows I found this works better if I create a separate shortcut that points to the |
holy smokes, John. I have the N170 experiment working, and that may just have to do for now, since we are coming down to the wire. But I plan to teach this course for many years (Neuroscience Techniques - a sampler of different neuroscience methodologies) so will explore more in the future. |
Another little snippet that might be useful This is a quick way to grab data with the device class without having to run a psychopy experiment or to save data to file from eegnb.devices.eeg import EEG
myeeg = EEG(device='muse2_bfb') # automatically initiates a brainflow connection
dat = myeeg.get_recent() # returns a time x channel pandas dataframe
dat.plot() # pandas matplotlib method Unfortunately we don't have a livestreaming figure like you get with In the mean time there is a simple signal quality check Command lne:
Python: from eegnb.analysis.utils import check_report
check_report(myeeg) That prints out standard deviations on the command line every 5 secs (like the numbers on the axes in the muselsl view plots ); also a bit like the actual muse app. |
okay, so I have eeg-notebooks running on my primary computer, which is running Mac OSX 10.15. One thing I am still confused about is the BLED dongle - so I do not need that at all? In parallel, I am struggling with getting eeg-notebooks to run on my secondary computer which has Mac OSX 10.13 - I can share my specific hassles, but any general tips? |
okay, upgrading to Catalina did not help. This is a MacBook Pro from 2013. Fresh conda environment. Here are the errors that I am getting, when trying to run eegnb runexp -ip: ... |
okay |
Hey @pjkohler curious, is this still an active issue for you? |
no, I think issue has been resolved. |
ℹ Computer information
📝 Provide detailed reproduction steps (if any)
✔️ Expected result
EEG device initialization
❌ Actual result
muse_get_recent throws an error, message "Couldn't find any stream, is your device connected?"
Note, connecting directly with muselsl like this:
works fine.
📷 Screenshots
The text was updated successfully, but these errors were encountered: