Skip to content

Commit 3cc2f30

Browse files
committed
Merge branch 'release/v0.3.3'
2 parents ba8671b + b5a149c commit 3cc2f30

File tree

130 files changed

+3260
-3001
lines changed

Some content is hidden

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

130 files changed

+3260
-3001
lines changed

.travis.yml

+13-55
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,14 @@
11
language: python
2+
dist: trusty
23
python:
34
- "3.6"
4-
before_install:
5-
# PyQt installation : https://github.com/harvimt/quamash/blob/master/.travis.yml
6-
- export DISPLAY=:99.0
7-
- sh -e /etc/init.d/xvfb start
8-
# Cached Downloads
9-
- sudo mkdir -p /downloads
10-
- sudo chmod a+rw /downloads
11-
- if [ ! -f /downloads/sip.tar.gz ]; then curl -L -o /downloads/sip.tar.gz http://sourceforge.net/projects/pyqt/files/sip/sip-4.16.5/sip-4.16.5.tar.gz; fi
12-
- if [ ! -f /downloads/pyqt5.tar.gz ]; then curl -L -o /downloads/pyqt5.tar.gz http://sourceforge.net/projects/pyqt/files/PyQt5/PyQt-5.4/PyQt-gpl-5.4.tar.gz; fi
13-
- echo '6d01ea966a53e4c7ae5c5e48c40e49e5 /downloads/sip.tar.gz' | md5sum -c -
14-
- echo '7f2eb79eaf3d7e5e7df5a4e9c8c9340e /downloads/pyqt5.tar.gz' | md5sum -c -
15-
# Builds
16-
- sudo mkdir -p /builds
17-
- sudo chmod a+rw /builds
5+
before_script:
6+
- "export DISPLAY=:99.0"
7+
- "sh -e /etc/init.d/xvfb start"
8+
- sleep 3 # give xvfb some time to start
189
install:
19-
# Qt5
20-
- sudo add-apt-repository -y ppa:beineri/opt-qt542
21-
- sudo apt-get update
22-
- sudo apt-get install -y qt54base
23-
# Builds
24-
- pushd /builds
25-
# SIP
26-
- tar xzf /downloads/sip.tar.gz --keep-newer-files
27-
- pushd sip-4.16.5
28-
- python configure.py
29-
- make
30-
- sudo make install
31-
- popd
32-
# Builds Complete
33-
- popd
34-
- cd ../
35-
- mkdir tmp/
36-
- cd /tmp
37-
- wget http://launchpadlibrarian.net/137699828/libc6_2.17-0ubuntu5_amd64.deb
38-
- wget http://launchpadlibrarian.net/137699829/libc6-dev_2.17-0ubuntu5_amd64.deb
39-
- mkdir libc6_2.17
40-
- cd libc6_2.17
41-
- ar p ../libc6_2.17-0ubuntu5_amd64.deb data.tar.gz | tar zx
42-
- ar p ../libc6-dev_2.17-0ubuntu5_amd64.deb data.tar.gz | tar zx
43-
- cd -
44-
# - sudo apt-get update
10+
- pushd $PWD
11+
# ------------------- PYTHON ENVIRONNEMENT -------------------
4512
# Deactivate travis environnement :
4613
- deactivate
4714
# We do this conditionally because it saves us some downloading if the
@@ -62,29 +29,20 @@ install:
6229
# Replace dep1 dep2 ... with your dependencies
6330
- conda create -q -n testenv python=$TRAVIS_PYTHON_VERSION numpy scipy matplotlib pip
6431
- source activate testenv
65-
# - pip install pyqt5
32+
- pip install mne
6633
- pip install setuptools
6734
- pip install nose
35+
- pip install PyOpenGL PyOpenGL_accelerate
6836
- pip install codecov
6937
- pip install pytest pytest-cov
70-
# - pwd
71-
# - cd ../
72-
- pwd
38+
# ------------------- VISPY -------------------
39+
- cd ../
7340
- pip install -e git+https://github.com/vispy/vispy#egg=vispy-dev
7441
- cd visbrain/
75-
- pip install .
76-
- LD_LIBRARY_PATH=/tmp/libc6_2.17/lib/x86_64-linux-gnu/ /tmp/libc6_2.17/lib/x86_64-linux-gnu/ld-2.17.so bin/python
77-
# - pip install -r requirements.txt
78-
79-
# script:
80-
# - py.test -v --cov=./
81-
82-
# # after_success:
83-
# # - ./tools/travis-upload-wheel.sh
42+
# ------------------- VISBRAIN -------------------
43+
- pip install -e .
8444
script: bash build_install.sh
8545
cache:
86-
directories:
87-
- /downloads
8846
apt: true
8947
notifications:
9048
email: false

MANIFEST.in

+11-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
1+
# Add README, LICENSE and requirements :
12
include README.rst
23
include LICENSE
34
include requirements.txt
5+
6+
# Add brain templates and eeg reference file :
47
recursive-include visbrain/brain/base/templates *.npz
5-
recursive-include visbrain/utils/topo *.npz
6-
recursive-include visbrain/brain/ico *.svg
7-
recursive-include visbrain/sleep/ico *.svg
8+
include visbrain/visuals/eegref.npz
9+
10+
# Add visbrain icons :
11+
include visbrain/brain/brain_icon.svg
12+
include visbrain/sleep/sleep_icon.svg
13+
include visbrain/topo/topo_icon.svg
14+
include visbrain/colorbar/colorbar_icon.svg
15+
include visbrain/figure/figure_icon.svg

README.rst

+2-58
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Visbrain
1616
:align: center
1717

1818

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://visbrain.org>`_, `examples and datasets <http://visbrain.org/auto_examples/>`_ and can also be downloaded from `PyPi <https://pypi.python.org/pypi/visbrain/>`_.
19+
**Visbrain** is an open-source python 3 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://visbrain.org>`_, `examples and datasets <http://visbrain.org/auto_examples/>`_ and can also be downloaded from `PyPi <https://pypi.python.org/pypi/visbrain/>`_.
2020

2121
Important links
2222
===============
@@ -60,7 +60,7 @@ We also strongly recommend to install *pyopengl* :
6060

6161
.. code-block:: shell
6262
63-
pip install pyopengl
63+
pip install PyOpenGL PyOpenGL_accelerate
6464
6565
Modules
6666
=======
@@ -75,62 +75,6 @@ Modules
7575
* `Figure <http://visbrain.org/figure.html>`_ : figure-layout for high-quality publication-like figures (see `Figure examples <http://visbrain.org/auto_examples/index.html#figure-examples>`_).
7676
* `Colorbar <http://visbrain.org/colorbar.html>`_ : colorbar editor (see `Colorbar examples <http://visbrain.org/auto_examples/index.html#colorbar-examples>`_).
7777

78-
.. Brain
79-
.. -----
80-
81-
.. The `Brain <http://etiennecmb.github.io/visbrain/brain.html>`_ module is primarily designed for visualizations within a 3D opaque/transparent brain and can be used for :
82-
83-
.. * Integrate EEG/MEG/Intracranial sources/electrodes and connectivity.
84-
.. * Display Regions of Interest (ROI) based either on Brodmann or AAL atlases.
85-
.. * Project source's activity onto the brain/ROI surface.
86-
.. * An extended control of colors.
87-
.. * Export in HD pictures with auto-cropping functionalities.
88-
.. * GUI or command line control.
89-
.. * `Brain xxamples and datasets <https://github.com/EtienneCmb/visbrain/tree/master/examples/brain>`_.
90-
91-
.. .. figure:: https://github.com/EtienneCmb/visbrain/blob/master/docs/picture/example.png
92-
.. :align: center
93-
94-
.. Sleep
95-
.. -----
96-
97-
.. `Sleep <http://etiennecmb.github.io/visbrain/sleep.html>`_ is a GUI based module for sleep data visualization and edition under Python. Main functionalities are :
98-
99-
.. * Load BrainVision, Micromed or European Data Format. Other file formats can be loaded using `MNE Python <http://mne-tools.github.io/stable/python_reference.html?highlight=io#module-mne.io>`_ and then pass as raw data.
100-
.. * Visualize polysomnographic data / spectrogram / topographic maps.
101-
.. * Load, edit and save hypnogram data or as publication-ready figures.
102-
.. * Perform automatic event detections (Spindles / REM / Peaks / Slow waves / K-complex / Muscle twitches).
103-
.. * Signal processing tools (filtering / wavelets / power...) and re-referencing (either to a single channel, common average or bipolarization).
104-
.. * `Sleep examples and datasets <https://drive.google.com/drive/folders/0B6vtJiCQZUBvRjc3cFFYcmFIeW8?usp=sharing>`_.
105-
106-
.. .. figure:: https://github.com/EtienneCmb/visbrain/blob/master/docs/picture/Sleep_main.png
107-
.. :align: center
108-
109-
.. Ndviz
110-
.. -----
111-
112-
.. `Ndviz <http://etiennecmb.github.io/visbrain/ndviz.html>`_ was designed to visualize multidimensional data and also includes basic plots :
113-
114-
.. * Visualize large datasets into a grid.
115-
.. * Basic plotting forms (continuous line / cloud of points / image).
116-
.. * Compute histogram / spectrogram.
117-
.. * Swap data dimensions from the GUI.
118-
.. * `Ndviz examples <https://github.com/EtienneCmb/visbrain/tree/master/examples/ndviz>`_.
119-
120-
.. .. figure:: https://github.com/EtienneCmb/visbrain/blob/master/docs/picture/ndviz_example.png
121-
.. :align: center
122-
123-
.. Figure
124-
.. ------
125-
126-
.. `Figure <http://etiennecmb.github.io/visbrain/figure.html>`_ is the only module which do not rely on a GUI or VisPy. It's a Matplotlib wrapper to simplify scientific figures production and allows :
127-
128-
.. * Load images and grid disposition.
129-
.. * Add x/y labels and titles.
130-
.. * Simple colorbar control.
131-
.. * Export the final figure with dpi control.
132-
.. * `Figure examples <https://github.com/EtienneCmb/visbrain/tree/master/examples/figure>`_.
133-
13478

13579
Contribution
13680
============

build_install.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/bash
22
source activate testenv
3-
py.test --cov
3+
py.test --cov --verbose

docs/conf.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@
7979
# built documents.
8080
#
8181
# The short X.Y version.
82-
version = '0.3.2'
82+
version = '0.3.3'
8383
# The full version, including alpha/beta/rc tags.
84-
release = '0.3.2'
84+
release = '0.3.3'
8585

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

docs/figure.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Example
7171
# Alternatively, you can show the figure :
7272
f.show()
7373
74-
.. figure:: picture/figure.png
74+
.. figure:: picture/picfigure/figure_example.png
7575
:align: center
7676

7777
Code above : four exported figures from the Brain module are aranged in a (2, 2) grid. Then, some have a colorbar, xlabel, ylabel. Finally, there is two shared colorbars.

docs/index.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
Visbrain documentation
2020
######################
2121

22-
Visbrain is a python package dedicated to multi-purpose neuroscience visualization tools. Here is the list of the current modules :
22+
Visbrain is a python 3 package dedicated to multi-purpose neuroscience visualization tools. Here is the list of the current modules :
2323

2424
.. figure:: /picture/visbrain_readme.png
2525
:align: center
@@ -52,7 +52,7 @@ We also strongly recommend to install *pyopengl* :
5252

5353
.. code-block:: shell
5454
55-
pip install pyopengl
55+
pip install PyOpenGL PyOpenGL_accelerate
5656
5757
PyQt5 version
5858
=============

docs/ndviz.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Description
1515
The Ndviz module groups a bundle of functionalities for the visualization of mutli-dimentional data. It can be used to represent all of your signals in a single canvas (see this `example <https://github.com/vispy/vispy/blob/master/examples/demo/gloo/realtime_signals.py>`_ by `Cyrille Rossant <https://github.com/rossant>`_ for the original script). Each single signal can then be ploted as a traditional continious line, a cloud of points, a histogram, a spectrogram or as an image.
1616

1717

18-
.. figure:: picture/ndviz_example.png
18+
.. figure:: picture/picndviz/ndviz_example.png
1919
:align: center
2020

2121
Use the following command to import Ndviz :

docs/picture/BrainObj.png

-708 KB
Binary file not shown.

docs/picture/Sleep_kc.png

-393 KB
Binary file not shown.

docs/picture/Sleep_sw.png

-377 KB
Binary file not shown.

docs/picture/example.png

-1.04 MB
Binary file not shown.

docs/picture/objects.png

-1.15 MB
Binary file not shown.
File renamed without changes.
File renamed without changes.
715 KB
Loading
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)