Skip to content

Commit 3dfd406

Browse files
committed
Merge branch 'release/v0.2.8'
2 parents 219ee6d + 0df9e3a commit 3dfd406

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+5942
-7428
lines changed

.travis.yml

+17-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ notifications:
33
email: false
44
python:
55
# We don't actually use the Travis Python, but this keeps it organized.
6-
- "3.5"
6+
- "3.6"
77
install:
88
# - sudo apt-get update
99
# Deactivate travis environnement :
@@ -24,13 +24,28 @@ install:
2424
- conda info -a
2525

2626
# Replace dep1 dep2 ... with your dependencies
27-
- conda create -q -n testenv python=$TRAVIS_PYTHON_VERSION numpy scipy matplotlib=1.5.1 pip
27+
- conda create -q -n testenv python=$TRAVIS_PYTHON_VERSION numpy scipy matplotlib pip
2828
- source activate testenv
29+
# - pip install pyqt5
2930
- pip install setuptools
3031
- pip install nose
3132
- pip install codecov
33+
# - pip install pytest pytest-cov
34+
- cd ../
3235
- pip install -e git+https://github.com/vispy/vispy#egg=vispy-dev
36+
- cd visbrain/
3337
- pip install .
3438
# - pip install -r requirements.txt
3539

40+
# script:
41+
# - py.test -v --cov=./
42+
43+
# # after_success:
44+
# # - ./tools/travis-upload-wheel.sh
3645
script: bash build_install.sh
46+
47+
notifications:
48+
email: false
49+
50+
after_success:
51+
- codecov

README.rst

+17-16
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,20 @@
33
.. image:: https://travis-ci.org/EtienneCmb/visbrain.svg?branch=master
44
:target: https://travis-ci.org/EtienneCmb/visbrain
55

6+
.. image:: https://codecov.io/gh/EtienneCmb/visbrain/branch/master/graph/badge.svg
7+
:target: https://codecov.io/gh/EtienneCmb/visbrain
8+
9+
.. image:: https://badge.fury.io/py/visbrain.svg
10+
:target: https://badge.fury.io/py/visbrain
11+
612
Visbrain
713
########
814

915
.. figure:: https://github.com/EtienneCmb/visbrain/blob/master/docs/picture/visbrain.png
1016
:align: center
1117

1218

13-
**Visbrain** is an open-source python package and provides hardware accelerated visualizations mainly for neuroscientific data. It is based on top of `VisPy <http://vispy.org/>`_ and PyQt and is distributed under the 3-Clause BSD license. We also provide an online `documentation <http://etiennecmb.github.io/visbrain/>`_, `examples and datasets <https://github.com/EtienneCmb/visbrain/tree/master/examples>`_ and can also be downloaded from `PyPi <https://pypi.python.org/pypi/visbrain/>`_.
19+
**Visbrain** is an open-source python package and provides hardware accelerated visualizations mainly for neuroscientific data. It is based on top of `VisPy <http://vispy.org/>`_ and PyQt and is distributed under the 3-Clause BSD license. We also provide an on line `documentation <http://etiennecmb.github.io/visbrain/>`_, `examples and datasets <https://github.com/EtienneCmb/visbrain/tree/master/examples>`_ and can also be downloaded from `PyPi <https://pypi.python.org/pypi/visbrain/>`_.
1420

1521
Right now, four modules are implemented, with the first three coming with a modular graphical interface :
1622

@@ -22,41 +28,36 @@ Right now, four modules are implemented, with the first three coming with a modu
2228
Installation
2329
============
2430

31+
Since version 0.2.8, Visbrain use PyQt5 and PyQt4 versions are no longer developed. Here, we only describe the installation of the PyQt5 version of Visbrain, but you can check the `documentation <http://etiennecmb.github.io/visbrain/>`_ for the installation of the older PyQt4 version.
32+
2533
Dependencies
2634
------------
2735

2836
Visbrain requires :
2937

30-
* Numpy
31-
* Scipy
32-
* Vispy (*development version*)
33-
* Matplotlib <= 1.5.1
34-
* PyQt4
38+
* NumPy
39+
* SciPy
40+
* VisPy (*development version*)
41+
* Matplotlib >= 1.5.5
42+
* PyQt5
3543
* Pillow
3644

3745
User installation
3846
-----------------
3947

40-
In a terminal, create and activate a 3.5 Python environment with the correct PyQt4 version :
41-
42-
.. code-block:: shell
43-
44-
conda create --yes -n visbrain python=3.5 numpy scipy pillow matplotlib=1.5.1 pip
45-
activate visbrain
46-
4748
Install the latest VisPy version from Github :
4849

4950
.. code-block:: shell
5051
5152
pip install -e git+https://github.com/vispy/vispy#egg=vispy-dev
5253
53-
Finally, install Visbrain :
54+
Then, install Visbrain :
5455

5556
.. code-block:: shell
5657
5758
pip install visbain
5859
59-
We also recommand to install pyopengl :
60+
We also strongly recommend to install *pyopengl* :
6061

6162
.. code-block:: shell
6263
@@ -73,7 +74,7 @@ The `Brain <http://etiennecmb.github.io/visbrain/brain.html>`_ module is primari
7374
* Integrate EEG/MEG/Intracranial sources/electrodes and connectivity.
7475
* Display Regions of Interest (ROI) based either on Brodmann or AAL atlases.
7576
* Project source's activity onto the brain/ROI surface.
76-
* An extended control of colours.
77+
* An extended control of colors.
7778
* Export in HD pictures with auto-cropping functionalities.
7879
* GUI or command line control.
7980
* `Examples and datasets <https://github.com/EtienneCmb/visbrain/tree/master/examples/brain>`_.

docs/conf.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@
6464
# built documents.
6565
#
6666
# The short X.Y version.
67-
version = '0.2.7'
67+
version = '0.2.8'
6868
# The full version, including alpha/beta/rc tags.
69-
release = '0.2.7'
69+
release = '0.2.8'
7070

7171
# The language for content autogenerated by Sphinx. Refer to documentation
7272
# for a list of supported languages.

docs/figure.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Example
3939
f = Figure(files, titles=titles, figtitle='My figure', xlabels=xlabels,
4040
ylabels=ylabels, grid=(2, 2), ax_bgcolor=ax_bgcolor, y=1.,
4141
fig_bgcolor=(0.098, 0.098, 0.098), figsize=(12, 12),
42-
text_color='white', auto_crop=True)
42+
text_color='white', autocrop=True)
4343
4444
# Add a colorbar only to the second axis :
4545
f.colorbar_to_axis(1, (0, 1), 'viridis', title='Repartition', ticks='complete',

docs/ico/sleep.png

35.9 KB
Loading

docs/ico/visbrain.png

63.8 KB
Loading

docs/ico/visbrain_128x128.png

23.6 KB
Loading

docs/index.rst

+48-25
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
.. image:: https://travis-ci.org/EtienneCmb/visbrain.svg?branch=master
22
:target: https://travis-ci.org/EtienneCmb/visbrain
33

4+
.. image:: https://codecov.io/gh/EtienneCmb/visbrain/branch/master/graph/badge.svg
5+
:target: https://codecov.io/gh/EtienneCmb/visbrain
6+
7+
.. image:: https://badge.fury.io/py/visbrain.svg
8+
:target: https://badge.fury.io/py/visbrain
9+
410

511
Visbrain documentation
612
######################
@@ -15,15 +21,42 @@ Visbrain is a python package in development and it's dedicated to neuroscience v
1521
Installation
1622
************
1723

18-
Here's the list of visbrain's dependancies :
24+
Dependencies
25+
============
26+
27+
Here's the list of visbrain's dependencies :
1928

2029
* Numpy
2130
* Scipy
2231
* Vispy : fast graphics rendering
2332
* Matplotlib : mainly for colors and colormaps integration
24-
* PyQt4 : Graphical User Interface components
33+
* PyQt5 : Graphical User Interface components
2534
* Pillow : for screenshots and image file format support.
2635

36+
We also strongly recommend to install *pyopengl* :
37+
38+
.. code-block:: shell
39+
40+
pip install pyopengl
41+
42+
PyQt5 version
43+
=============
44+
45+
For the PyQt5 version, Matplotlib's version should be >= 1.5.5. If PyQt is not installed, run either **pip install pyqt5** or **conda install pyqt**. Then, in a terminal run :
46+
47+
.. code-block:: shell
48+
49+
pip install -e git+https://github.com/vispy/vispy#egg=vispy-dev
50+
51+
Finally, install Visbrain :
52+
53+
.. code-block:: shell
54+
55+
pip install visbain
56+
57+
PyQt4 version
58+
=============
59+
2760
New Python versions (>= 3.6) and Matplotlib comes by default with PyQt5 and this a limitation because Visbrain use the GUI backends PyQt4. We are working to port Visbrain to PyQt5 but right now, you'll have to use a Python version under 3.6 and define an isolated environnement (ex : python=3.5). In addition, Visbrain use new VisPy functionalities and the most up-to-date VisPy version on PyPi is obsolete so you will have to install VisPy from Github.
2861

2962
First, in a terminal, create and activate a 3.5 Python environnement with the correct PyQt4 version :
@@ -43,16 +76,22 @@ Finally, install Visbrain :
4376

4477
.. code-block:: shell
4578
46-
pip install visbain
79+
pip install visbain==0.2.7
4780
48-
We also recommand to install pyopengl :
81+
What's new?
82+
***********
4983

50-
.. code-block:: shell
84+
* New in version v0.2.8
5185

52-
pip install pyopengl
86+
* Visbrain
5387

54-
What's new?
55-
***********
88+
* Migration to PyQt5
89+
* Start new module *Colorbar* for a better integration of color controls and properties.
90+
91+
* Sleep
92+
93+
* Enable exporting colored hypnogram
94+
* Bug fixing & GUI iprovements
5695

5796
* New in version v0.2.3
5897

@@ -62,21 +101,6 @@ What's new?
62101
* Detection improvements
63102
* Add link to script and datasets to the doc
64103

65-
* New in version v0.2.2
66-
67-
* Brain
68-
69-
* Bug fixing
70-
71-
* Sleep
72-
73-
* Bug fixing
74-
* Save and load GUI configuration
75-
* Control the sleep stage order using the href input parameter
76-
* Enable/disable the drag and drop on load
77-
* Better Black and white hypnogram exportation
78-
* New shortcuts
79-
80104

81105
Future plans
82106
************
@@ -85,8 +109,7 @@ Future plans
85109

86110
* Visbrain
87111

88-
* PyQt5 migration
89-
* pip and conda installation
112+
* conda installation
90113

91114
* Brain
92115

docs/sleep.rst

+4
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,11 @@ s Display / hide spectrogram
489489
t Display / hide topoplot
490490
h Display / hide hypnogram
491491
p Display / hide navigation bar
492+
x Display / hide time axis
493+
g Display / hide grid
492494
z Enable / disable zoom
495+
i Enable / disable indicators
496+
CTRL + Num Display / hide the channel Num [0, 9]
493497
CTRL + d Display quick settings panel
494498
CTRL + s Save hypnogram
495499
CTRL + n Screenshot window

dvp/README

+4
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,7 @@
33
The GUI has been developped using qt-designer. The software generate a
44
*.ui file. This file is then transformed in a *.py using :
55
pyuic4 path_to_visbrain/visbrain/vbrain/interface/gui/visbrain_gui.ui -o path_to_visbrain/visbrain/vbrain/interface/gui/visbrain_gui.py
6+
7+
# PyQt5 :
8+
Version linux a besoin d'être mise à jour :
9+
pip install pyqt5==5.7.1 sip==4.19

dvp/vbrain.todo dvp/brain.todo

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
Nouvelles fonctions
2+
-5 Visu de signaux
3+
-5 Visu de maps
4+
-5 Compatibilité avec atlas + ROI (voir MNE pour le chargement)
5+
16
Big problem
27
-5 Améliorer la gestion de la mémoire + traquer les duplication de données.
38
-5 Prendre la classe colorbar de ndviz et adapter avec. Ce sera nettement plus claire.
@@ -24,6 +29,8 @@ doc
2429

2530
Colorbar
2631
-5 Exportation de la colorbar ne marche pas bien (si GUI reste fermée). Il faudrait faire une petite opération sur le canvas pour le mettre à jour avant le screenshot
32+
-5 Screenshot via commandline bug (choisir entre connectivité / projection)
33+
-5 Colorbar screenshot
2734
-3 Ajouter un paramètre label pour chaque objet.
2835
+4 Ajouter dans color.py une fonction mpl_colormap(name, invert=False, mymap=None) qui retourne la liste de colorbar et qui teste si mymap est bien dans la liste.
2936
+5 La couleur du texte de la colorbar devrait pouvoir être fixé ou auto (en fonction de la couleur de fond)
@@ -37,8 +44,8 @@ Sources
3744
+5 Ré-arranger le SourceBase càd découper en fonction, en incluant le checking d'args. Ensuite
3845

3946
Projection
40-
-5 Smooth projection
4147
-1 Projection temporelle, en tenant compte de la fréquence d'échantillonage
48+
+5 Smooth projection
4249
+2 Ajouter un paramètre de smoothing exponentiel + filtre gaussien sur le final
4350
+5 Vérifier les dernières modifs liées à la projection corticale / répartition
4451
+4 Projection interne à peaufiner

dvp/sleep.todo

+2
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,14 @@ Bug
2525
Etienne
2626
-5 Voir si je pourrai pas implémenter ma propre class GridLines qui serait peut-être plus facile à paramétrer + transformation non-linéaires
2727
-5 Clean des fillLocationTable pour peaks
28+
-5 Exportation hypno devrait prendre en compte l'ordre des stades définit en entrée
2829
-5 Faire une unique fonction d'exportation de table : ça évitera tout les problèmes.
2930
-4 Zero reference (Tarek?)
3031
-4 Améliorer gestion et méthode topoplot
3132
-4 Hypnogramme: on pourrait faire une checkbox "Edit mode" qui lorsqu'elle est cochée permet d'activer les fonctions de modifications de l'hypno. Lorsque l'utilisateur la coche, il doit selectionner un nom de fichier d'hypnogramme, puis à chaque modification ça enregistre automatiquement dans le fichier .hyp ou .txt
3233
-3 Checking window par défaut : si les donnés sont trop courtes, cela pourrait engendrer un bug.
3334
-2 Découper les objets visuals
35+
+5 Méthode de checking si les détections lancées ou pas (pour éviter le bug d'exportation si | détections)
3436
+5 Ajouter une reversed checkbox sur le spectrogramme pour inverser Spectral et refaire la figure de filtrage du papier.
3537
+5 Permettre de changer l'ordre des états de sommeil
3638
+5 Permettre à l'utilisateur d'enregistrer ses propres settings et de les charger

dvp/visbrain.todo

+18-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
1-
Big problem
1+
Todo
2+
-5 Remplir le io puis remplacer tout ce qui est chargement/sauvegarde dans les autres modules
3+
-5 Classe colorbar (Alternative, copier colorbar.py)
4+
-4 Réorganiser le dossier picture/*module*
5+
-4 Icone pour tout les modules + les mettre dans gui/
6+
-3 GUI screenshot HD avec picker de canvas
7+
-3 What's new pour tout les modules
8+
9+
10+
En cours
211
-5 Compatibilité PyQt5
3-
-5 Améliorer procédure d'installation
4-
-5 Augmenter partage de utils/
12+
-5 Améliorer procédure d'installation
13+
14+
Modules
15+
-3 Connect (voir conn avec Raph)
16+
-3 Topo
17+
-3 Signal
18+
-3 Image
19+
-3 ERP

requirements.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
numpy
22
scipy
3-
matplotlib<=1.5.1
3+
matplotlib>=1.5.5
4+
pyqt5
45
pillow

setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from pip.req import parse_requirements
77
from optparse import Option
88

9-
__version__ = "0.2.7"
9+
__version__ = "0.2.8"
1010
NAME = 'visbrain'
1111
AUTHOR = "Visbrain developpers"
1212
MAINTAINER = "Etienne Combrisson"
@@ -48,7 +48,7 @@ def read(fname):
4848
try:
4949
from vispy.scene.visuals import ColorBar
5050
except:
51-
raise ValueError("You should install the right vispy version. In a "
51+
raise ValueError("You should install the developer version of vispy. In a "
5252
"terminal, run : pip install -e git+https://github.com"
5353
"/vispy/vispy#egg=vispy-dev")
5454

test/test_imports.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def test_import_scipy():
1313

1414
def test_import_pyqt():
1515
"""Import PyQt"""
16-
import PyQt4
16+
import PyQt5
1717

1818
def test_import_Brain():
1919
"""Import the Brain module."""

0 commit comments

Comments
 (0)