## Where communities thrive

• Join over 1.5M+ people
• Join over 100K+ communities
• Free without limits
##### Activity
• Sep 10 10:37
EtienneCmb closed #49
• Sep 10 10:37
EtienneCmb commented #49
• Sep 10 10:10

EtienneCmb on gh-pages

Make install (compare)

• Sep 10 09:10

EtienneCmb on master

fix import issues (NEED BIG CLE… (compare)

• Sep 10 07:58

EtienneCmb on master

uniform grid color Add makefile + fix imports + fi… (compare)

• Sep 07 05:18
InteGerard commented #49
• Aug 12 01:18
miao-cao commented #49
• Aug 11 17:07
jasmainak commented #49
• Aug 11 14:36
miao-cao opened #49
• Jul 16 06:36
EtienneCmb closed #45
• Jul 16 06:35
EtienneCmb closed #47
• Jul 16 06:35

EtienneCmb on master

• Jul 16 06:35
EtienneCmb closed #48
• Jul 16 06:35
EtienneCmb commented #48
• Jul 15 17:07
danieltomasz opened #48
• Jul 15 16:56
danieltomasz opened #47
• Jun 20 14:10
EtienneCmb closed #46
• Jun 20 14:03
kgerman73 commented #46
• Jun 20 13:48
EtienneCmb commented #46
• Jun 20 13:41
kgerman73 commented #46
rmasiso
@rmasiso
yeah
Etienne Combrisson
@EtienneCmb
can you try pip install -U sip?
rmasiso
@rmasiso
ok successfully installed
Etienne Combrisson
@EtienneCmb
still got the save error with visbrain?
rmasiso
@rmasiso
yeah :/
Referenced from: /Users/RMASISO/anaconda/lib/python3.5/site-packages/PyQt5/QtCore.so
Expected in: flat namespace
in /Users/RMASISO/anaconda/lib/python3.5/site-packages/PyQt5/QtCore.so
Etienne Combrisson
@EtienneCmb
hum....
rmasiso
@rmasiso
just from "from visbrain import Brain"
Etienne Combrisson
@EtienneCmb
is PySide installed?
rmasiso
@rmasiso
currently installing via brew
==> Installing dependencies for pyside: llvm, gdbm, openssl, readline, sqlite, xz, python, python@2, qt
==> Installing pyside dependency: llvm
rmasiso
@rmasiso
no luck :(
Referenced from: /Users/RMASISO/anaconda/lib/python3.5/site-packages/PyQt5/QtCore.so
Expected in: flat namespace
in /Users/RMASISO/anaconda/lib/python3.5/site-packages/PyQt5/QtCore.so
Etienne Combrisson
@EtienneCmb
I'm running out of ideas, I'm not used to mac. I would suggest to create an empty 3.6 env and install everything using pip. Or maybe @raphaelvallat you have any experience with osx?
May be Homebrew/homebrew-core#24972?
rmasiso
@rmasiso
hmmm
so i already did the 3.6 environment :/
tan3x
@tan3x
anyone has experience on co-work with emotiv or muse headset? i just wonder about the compatibility and functionality. Also which one do you suggest for BCI research? gratz¡
Raphael Vallat
@raphaelvallat
Hi @tanermetin ! I don't have any experience with emotiv or muse. However, it seems that they give the possibility to export the data in european data format (.edf) or EEGLab format, which are both accepted by Visbrain. If you are interest in BCI, I would suggest you take a look at https://openbci.com/ . Thanks, Raphael
tan3x
@tan3x
thank you @raphaelvallat , yes saw them and actually impressed the story of openBCI. products are a bit pricey compared to others but beauty is in opensource. also there is an active community(compared to emotiv's support). I hope to have more questions when i got my hands dirty with visbrain. bonjour,
Etienne Combrisson
@EtienneCmb
@tanermetin in my lab, there's people doing machine learning on data coming from muse datasets. If you've questions, I can introduce you
tan3x
@tan3x
for now i just wonder if 5 channel headsets(like emotiv, muse) are powerful enough to gather sufficient amount of wave spectrum and apply ML and get high accuracy results. Or are they just 'toy' to see the waves on the simulator etc. Thank you for your interest.
NoahMarkowitz
@sportnoah14
Hello visbrain community, I'm trying to use the example scripts of visbrain to better understand how it works but I keep running into the same issue in the examples. It seems to occur when it tries to download a file. Here's what my terminal output looks like:
/anaconda3/envs/visbrainEnv/lib/python3.6/site-packages/vispy/visuals/isocurve.py:22: UserWarning: VisPy is not yet compatible with matplotlib 2.2+
warnings.warn("VisPy is not yet compatible with matplotlib 2.2+")
- Sampling-frequency : 200.00Hz
- Number of time points (before down-sampling): 360000
- Down-sampling frequency : 100.00Hz
- Number of time points (after down-sampling): 180000
- Number of channels : 23
/Applications/visbrain/visbrain/io/read_sleep.py:208: UserWarning: Wrong channel data amplitude.
warn("Wrong channel data amplitude. ")
Traceback (most recent call last):
File "/Users/sportsnoah14/Documents/Research_knowledge/Coding_Learn/Python/visbrain/python_scripts/gui_sleep/load_edf_local.py", line 29, in <module>
Sleep(data=dfile, hypno=hfile, config_file=cfile).show()
File "/Applications/visbrain/visbrain/gui/sleep/sleep.py", line 157, in __init__
Visuals.__init__(self)
File "/Applications/visbrain/visbrain/gui/sleep/visuals/visuals.py", line 1103, in __init__
parent=self._topoCanvas.wc.scene)
File "/Applications/visbrain/visbrain/gui/sleep/visuals/visuals.py", line 752, in __init__
TopoMesh.__init__(self, **kwargs)
File "/Applications/visbrain/visbrain/visuals/topo_visual.py", line 196, in __init__
auto = self._get_channel_coordinates(xyz, channels, system, unit)
File "/Applications/visbrain/visbrain/visuals/topo_visual.py", line 382, in _get_channel_coordinates
xyz, keeponly = self._get_coordinates_from_name(channels)
File "/Applications/visbrain/visbrain/visuals/topo_visual.py", line 437, in _get_coordinates_from_name
filename, url = name, get_data_url(name, astype)
File "/Applications/visbrain/visbrain/io/rw_config.py", line 47, in load_config_json
with open(filename) as f:
FileNotFoundError: [Errno 2] No such file or directory: '/Applicat/data_url.json'
Any help would be greatly appreciated. Thank you
Etienne Combrisson
@EtienneCmb

Hello @sportnoah14 ,

I've never seen this error.
1) Is it this example that you're trying to run?
2) I suspect a path error to the config file. Can you try to run Sleep but without the config input? Sleep(data=dfile, hypno=hfile).show()

NoahMarkowitz
@sportnoah14
Thank you for the quick response. Yes that's the example I tried to run. Even excluding the config_file argument it still ended with the same error. I tried running as is, as well as downloading the example data beforehand.
Etienne Combrisson
@EtienneCmb
Mmmh that's weird. Did you install visbrain from pip?
NoahMarkowitz
@sportnoah14
I tried from pip as well as via git clone. Both come up with the same error
Etienne Combrisson
@EtienneCmb
I just found why this is not working. I'm going to make a quick fix for it.
Etienne Combrisson
@EtienneCmb
@sportnoah14 it should now be fixed. You can try to pull the modifs from the master branch to see if it's now running
NoahMarkowitz
@sportnoah14
Thank you @EtienneCmb ! It's now working for me! Thank you very much
Stefan Repplinger
@stfnrpplngr
Hi, I get the following error trying to start the 00_brain_control.py:
runfile('C:/Users/reppling/Documents/GitHub/visbrain/examples/gui_brain/00_brain_control.py', wdir='C:/Users/reppling/Documents/GitHub/visbrain/examples/gui_brain')
C:\Continuum\anaconda3\lib\site-packages\vispy\visuals\isocurve.py:22: UserWarning: VisPy is not yet compatible with matplotlib 2.2+
warnings.warn("VisPy is not yet compatible with matplotlib 2.2+")
BrainObj(name='B3') created
VolumeObj(name='brodmann') created
Traceback (most recent call last):

File "<ipython-input-1-eb725fac0ef4>", line 1, in <module>
runfile('C:/Users/reppling/Documents/GitHub/visbrain/examples/gui_brain/00_brain_control.py', wdir='C:/Users/reppling/Documents/GitHub/visbrain/examples/gui_brain')

File "C:\Continuum\anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 827, in runfile
execfile(filename, namespace)

File "C:\Continuum\anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 110, in execfile

File "C:/Users/reppling/Documents/GitHub/visbrain/examples/gui_brain/00_brain_control.py", line 59, in <module>
vb = Brain(brain_obj=b_obj, bgcolor='slateblue')

File "c:\users\reppling\documents\github\visbrain\visbrain\gui\brain\brain.py", line 106, in __init__
Visuals.__init__(self, self.view.wc, **kwargs)

File "c:\users\reppling\documents\github\visbrain\visbrain\gui\brain\visuals.py", line 75, in __init__
self.volume = VolumeObj('brodmann')

File "c:\users\reppling\documents\github\visbrain\visbrain\objects\volume_obj.py", line 262, in __init__
self(name, vol, hdr, threshold, cmap, method, select)

File "c:\users\reppling\documents\github\visbrain\visbrain\objects\volume_obj.py", line 267, in __call__
_Volume.__call__(self, name, vol=vol, hdr=hdr)

File "c:\users\reppling\documents\github\visbrain\visbrain\objects\volume_obj.py", line 104, in __call__
labels, index = arch['labels'], arch['index']

File "C:\Continuum\anaconda3\lib\site-packages\numpy\lib\npyio.py", line 262, in __getitem__
pickle_kwargs=self.pickle_kwargs)

File "C:\Continuum\anaconda3\lib\site-packages\numpy\lib\format.py", line 692, in read_array
raise ValueError("Object arrays cannot be loaded when "

ValueError: Object arrays cannot be loaded when allow_pickle=False

WARNING: QSocketNotifier: Multiple socket notifiers for same socket 1936 and type Read

WARNING: QSocketNotifier: Multiple socket notifiers for same socket 1936 and type Read
Etienne Combrisson
@EtienneCmb
Hi @stfnrpplngr , I've never seen this error. Can you show me your numpy version? import numpy as np; print(np.__version__)
Stefan Repplinger
@stfnrpplngr
np.__version__
Out[2]: '1.16.3'
Ian Charest
@iancharest
this bug comes from numpy 1.16.3. A temporary solution is to downgrade your numpy version to 1.16.2. if you are using pip:
pip install numpy==1.16.2
Etienne Combrisson
@EtienneCmb
@iancharest @stfnrpplngr this is good to know, but probably a better solution would be to fix it inside visbrain. I've to check if this allow_pickle=True fix this issue and when this input parameter was introduced. Thx @iancharest
Ian Charest
@iancharest
@EtienneCmb indeed updating your numpy loads with allow_pickle=True would solve this, and prevent this bug in the future.
willanxywc
@willanxywc
Hi every one, why the sc.preview gets no output when every line of http://visbrain.org/auto_examples/objects/plot_roi_object.html#sphx-glr-auto-examples-objects-plot-roi-object-py runs without error?
also when I change the mpl argument of preview(). I get an error: got an unexpected keyword argument 'mpl'. But 'mpl' is a changeable argument as shown in the documents.
Etienne Combrisson
@EtienneCmb
@willanxywc what's the ouput of your terminal?
Blau Grana
Hi,
I am trying to create an animation showing connectivity changes over time in the brain. So far I haven't found a way to iteratively update the values of connectivity objects and have it be displayed. How can I achieve this?
Etienne Combrisson
@EtienneCmb
Hi @granul_jabes_twitter , actually, I just realized that there's no easy way to do it. But here's an example of how to create a gif with a changing connectivity object :
import numpy as np
import imageio

from visbrain.objects import SceneObj, BrainObj, ConnectObj

n_sources = 10
n_pic = 10
xyz = np.random.uniform(-50, 50, (n_sources, 3))

writer = imageio.get_writer('animate_conn.gif')
for k in range(n_pic):
# random connectivity strentgh
conn = np.random.rand(n_sources, n_sources)
# create the scene
sc = SceneObj()
b_obj = BrainObj('white')
c_obj = ConnectObj('anim_conn', xyz, conn)
# render the scene
im = sc.render()
writer.append_data(im)
writer.close()
Blau Grana
Thanks @EtienneCmb !
Dakota Kliamovich
@dkliamovich
Hi there! I'm trying to open the Brain module of visbrain using 'from visbrain.gui import Brain' followed by 'Brain().show()'. However, I keep getting the following error: ImportError: cannot import name 'imresize' from 'scipy.misc'. How might I be able to troubleshoot this?
Dakota Kliamovich
@dkliamovich
Nevermind - I found that this issue is resolved on the GitHub master branch, just not on the develop branch.
Etienne Combrisson
@EtienneCmb
Hello @dkliamovich , you're right I've to draft a new release

Hi,

I’m using Visbrain for visualization of cortical surface plots, and generating images using the screenshot function in BrainObj (no GUI is needed). Everything is working fine when I run it on my local computer. However, I want to be able to run my scripts on a remote server, but when I try this, I get an error when trying to import BrainObj. I think this is related to PyQt and I get the error message:

"qt.qpa.xcb: could not connect to display :23.0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl, xcb."

I there a way to run Visbrain in a headless mode?

Etienne Combrisson
@EtienneCmb