Skip to content

Commit ffb7859

Browse files
committed
Merge v0.4.3
2 parents 8247246 + aff10a6 commit ffb7859

File tree

276 files changed

+5197
-21155
lines changed

Some content is hidden

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

276 files changed

+5197
-21155
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -89,3 +89,4 @@ docs/auto_examples/
8989
docs/modules/
9090
report.html
9191
notebooks/
92+
.pytest_cache/

.travis.yml

+16-7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
language: python
22

3+
cache:
4+
pip: true
5+
apt: true
6+
directories:
7+
- ~/visbrain_data
38

49
sudo: false
510
dist: trusty
@@ -11,13 +16,15 @@ matrix:
1116
include:
1217
- env: TEST=standard
1318
os: linux
19+
# - env: TEST=standard
20+
# os: linux
21+
# python: '3.7'
1422
- env: TEST=flake
1523
os: linux
16-
# - env: TEST=examples
17-
# os: linux
1824
# - env: TEST=standard
1925
# os: osx
20-
# language: generic
26+
- env: TEST=examples
27+
os: linux
2128
allow_failures:
2229
- env: TEST=flake
2330

@@ -42,18 +49,20 @@ before_install:
4249

4350
install:
4451
# Create the py3 environnement ;
45-
- conda create -q -n testenv python=$TRAVIS_PYTHON_VERSION numpy scipy pip
52+
- conda create -q -n testenv python=$TRAVIS_PYTHON_VERSION numpy scipy pip cython
4653
- source activate testenv
4754
# Install dependencies :
48-
- if [ "${TEST}" == "standard" ]; then
55+
- if [ "${TEST}" == "standard" ] || [ "${TEST}" == "examples" ]; then
4956
pip install codecov pytest pytest-cov pytest-sugar pytest-travis-fold openpyxl xlrd;
50-
pip install mne nibabel pandas tensorpac;
57+
pip install mne nibabel pandas tensorpac scikit-image;
5158
pip install git+https://github.com/hbldh/lspopt.git#egg=lspopt;
5259
fi;
5360
- if [ "${TEST}" == "flake" ]; then
5461
pip install flake8 pep8-naming;
5562
fi;
56-
# - pip install PyOpenGL PyOpenGL_accelerate
63+
# Install latest version vispy :
64+
- pip install git+https://github.com/vispy/vispy.git
65+
- pip install PyOpenGL PyOpenGL_accelerate
5766
# - pip install -q freetype-py husl pypng cassowary imageio
5867
# ------------------- VISBRAIN -------------------
5968
- cd ${SRC_DIR}

MANIFEST.in

+1-17
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,5 @@ include README.rst
33
include LICENSE
44
include requirements.txt
55

6-
# Brain templates (Don't use recursive-include visbrain/data *.npz) :
7-
include visbrain/data/templates/B1.npz
8-
include visbrain/data/templates/B2.npz
9-
include visbrain/data/templates/B3.npz
10-
11-
# ROI :
12-
include visbrain/data/roi/brodmann.npz
13-
include visbrain/data/roi/aal.npz
14-
include visbrain/data/roi/talairach.npz
15-
16-
# Eegref :
17-
include visbrain/data/topo/eegref.npz
18-
19-
# Add visbrain icons :
20-
recursive-include visbrain/data/icons *.svg
21-
226
# Add url path :
23-
include visbrain/data/data_url.txt
7+
include visbrain/data_url.json

Makefile

+16-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# simple makefile to simplify repetetive build env management tasks under posix
2-
32
CTAGS ?= ctags
43

54
all: clean inplace test
@@ -37,8 +36,22 @@ flake: clean-test
3736
@flake8
3837

3938
examples: clean
40-
@echo "NOT CONFIGURED YET"
41-
39+
@for i in examples/brain/*.py examples/objects/*.py;do \
40+
echo "-----------------------------------------------"; \
41+
echo $$i; \
42+
echo "-----------------------------------------------"; \
43+
python $$i --visbrain-show=False; \
44+
echo "\n"; \
45+
done
46+
47+
examples-full: clean
48+
@for i in @for i in examples/*/*.py;do \
49+
echo "-----------------------------------------------"; \
50+
echo $$i; \
51+
echo "-----------------------------------------------"; \
52+
python $$i --visbrain-show=False; \
53+
echo "\n"; \
54+
done
4255

4356
pypi:
4457
@python setup.py register -r pypi

README.rst

+2-34
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ Visbrain requires :
4646
* Matplotlib >= 1.5.5
4747
* PyQt5
4848
* Pillow
49+
* PyOpenGL
4950

5051
User installation
5152
-----------------
@@ -54,38 +55,5 @@ Install Visbrain :
5455

5556
.. code-block:: shell
5657
57-
pip install visbrain
58+
pip install -U visbrain
5859
59-
We also strongly recommend to install *pandas* and *pyopengl* :
60-
61-
.. code-block:: shell
62-
63-
pip install pandas PyOpenGL PyOpenGL_accelerate
64-
65-
Modules
66-
=======
67-
68-
.. figure:: https://github.com/EtienneCmb/visbrain/blob/master/docs/picture/visbrain_readme.png
69-
:align: center
70-
71-
* `Brain <http://visbrain.org/brain.html>`_ : visualize EEG/MEG/Intracranial data, connectivity in a standard MNI 3D brain (see `Brain examples <http://visbrain.org/auto_examples/index.html#brain-examples>`_).
72-
* `Sleep <http://visbrain.org/sleep.html>`_ : visualize and analyze polysomnographic sleep data (see `Sleep examples <http://visbrain.org/auto_examples/index.html#sleep-examples>`_).
73-
* `Signal <http://visbrain.org/signal.html>`_ : data-mining module for time-series inspection (see `Signal examples <http://visbrain.org/auto_examples/index.html#signal-examples>`_).
74-
* `Topo <http://visbrain.org/topo.html>`_ : display topographical maps (see `Topo examples <http://visbrain.org/auto_examples/index.html#topoplot-examples>`_).
75-
* `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>`_).
76-
* `Colorbar <http://visbrain.org/colorbar.html>`_ : colorbar editor (see `Colorbar examples <http://visbrain.org/auto_examples/index.html#colorbar-examples>`_).
77-
78-
79-
Contribution
80-
============
81-
82-
Main developers
83-
---------------
84-
85-
* `Etienne Combrisson <http://etiennecmb.github.io>`_
86-
* `Raphael Vallat <https://raphaelvallat.github.io>`_
87-
88-
With the help of
89-
----------------
90-
91-
*Karim Jerbi, Christian O'Reilly, David Meunier, Dmitri Altukchov, Tarek Lajnef, Perrine Ruby, JB Einchenlaub, kevroy314, Annalisa Pascarella, Thomas Thiery, Yann Harel, Anne-Lise Saive, Golnush Alamian*

appveyor.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,14 @@ install:
2323
- "conda config --set always_yes yes --set changeps1 no"
2424
- "conda update -q conda"
2525
- "conda info -a"
26-
- "conda create -q -n testenv python=%PYTHON_VERSION% numpy scipy matplotlib pip"
26+
- "conda create -q -n testenv python=%PYTHON_VERSION% numpy scipy matplotlib pip cython"
2727
# Activate testing environnement :
2828
- "activate testenv"
2929
- "python -m pip install --upgrade pip"
30+
# Install latest vispy version :
31+
- pip install git+https://github.com/vispy/vispy.git
3032
# Install dependencies :
31-
- "pip install mne nibabel setuptools PyOpenGL PyOpenGL_accelerate pytest pandas openpyxl tensorpac xlrd"
33+
- "pip install mne nibabel setuptools PyOpenGL PyOpenGL_accelerate pytest pandas openpyxl tensorpac xlrd scikit-image"
3234
- "pip install git+https://github.com/hbldh/lspopt.git#egg=lspopt"
3335
- "dir"
3436
# ------------------- VISBRAIN -------------------

circle.yml

+82-59
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,82 @@
1-
general:
2-
branches:
3-
ignore:
4-
- gh-pages
5-
6-
7-
machine:
8-
environment:
9-
# We need to set this variable to let Anaconda take precedence
10-
PATH: "/home/ubuntu/miniconda3/envs/circleenv/bin:/home/ubuntu/miniconda3/bin:$PATH"
11-
DISPLAY: ":99.0"
12-
python:
13-
version: 3.6.0
14-
15-
dependencies:
16-
cache_directories:
17-
- "~/miniconda3"
18-
# Various dependencies
19-
pre:
20-
# Get a running Python
21-
- cd ~;
22-
# Disable pyenv (no cleaner way provided by CircleCI as it prepends pyenv version to PATH)
23-
- rm -rf ~/.pyenv;
24-
- rm -rf ~/virtualenvs;
25-
# Get Anaconda and conda-based requirements
26-
- >
27-
if [ ! -d "/home/ubuntu/miniconda3" ]; then
28-
echo "Setting up conda";
29-
wget -q http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh;
30-
chmod +x ~/miniconda.sh;
31-
~/miniconda.sh -b -p /home/ubuntu/miniconda3;
32-
conda update --yes --quiet conda;
33-
else
34-
echo "Conda already set up.";
35-
fi
36-
- if ! conda env list | grep circleenv; then
37-
conda create -n circleenv --yes pip python=3.6 pip;
38-
else
39-
echo "Conda env already set up.";
40-
fi;
41-
- conda install -n circleenv --yes numpy scipy pip;
42-
- pip install pytest pytest-travis-fold;
43-
- pip install mne nibabel pandas openpyxl tensorpac xlrd;
44-
- pip install git+https://github.com/hbldh/lspopt.git#egg=lspopt;
45-
- ls -al /home/ubuntu/miniconda3;
46-
- ls -al /home/ubuntu/miniconda3/bin;
47-
- echo $PATH;
48-
- echo $CIRCLE_BRANCH
49-
- which python;
50-
- which pip;
51-
52-
override:
53-
- cd /home/ubuntu/visbrain && pip install -e .;
54-
- /sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -screen 0 1400x900x24 -ac +extension GLX +render -noreset;
55-
56-
test:
57-
override:
58-
- py.test:
59-
timeout: 1500
1+
version: 2
2+
jobs:
3+
build:
4+
branches:
5+
ignore:
6+
- gh-pages
7+
only:
8+
- master
9+
- develop
10+
docker:
11+
- image: circleci/python:3.6-jessie
12+
steps:
13+
- checkout
14+
- run:
15+
name: Clean CircleCI
16+
command: |
17+
rm -rf ~/.pyenv;
18+
rm -rf ~/virtualenvs;
19+
- run:
20+
name: Spin up Xvfb
21+
command: |
22+
/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -screen 0 1400x900x24 -ac +extension GLX +render -noreset;
23+
echo "export DISPLAY=:99" >> $BASH_ENV;
24+
- run: sudo apt-get install libgl1-mesa-glx libegl1-mesa libxrandr2 libxrandr2 libxss1 libxcursor1 libxcomposite1 libasound2 libxi6 libxtst6 qt5-default;
25+
- restore_cache:
26+
keys:
27+
- data-cache
28+
- pip-cache
29+
- miniconda-cache
30+
- run:
31+
name: Install miniconda
32+
command: |
33+
if [ ! -d "~/miniconda3" ]; then
34+
wget -q http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh;
35+
chmod +x ~/miniconda.sh;
36+
~/miniconda.sh -b -p ~/miniconda3;
37+
echo "export PATH=~/miniconda3/bin:$PATH" >> $BASH_ENV;
38+
else
39+
echo "Miniconda3 already set up.";
40+
fi
41+
- save_cache:
42+
key: miniconda-cache
43+
paths:
44+
- ~/.cache/miniconda
45+
- run:
46+
name: Setup Python environment
47+
command: |
48+
conda update --yes --quiet conda;
49+
conda create -n testenv --yes python=3.6 numpy scipy pip cython qt==5.9.4 matplotlib==2.2.2 pyqt==5.9.2 ;
50+
source activate testenv;
51+
pip install -U pip;
52+
pip install git+https://github.com/vispy/vispy.git;
53+
pip install pytest pytest-travis-fold;
54+
pip install mne nibabel pandas openpyxl tensorpac xlrd scikit-image;
55+
pip install git+https://github.com/hbldh/lspopt.git#egg=lspopt;
56+
echo $PATH;
57+
echo $CIRCLE_BRANCH;
58+
which python;
59+
which pip;
60+
- save_cache:
61+
key: pip-cache
62+
paths:
63+
- ~/.cache/pip
64+
- run:
65+
name: Install visbrain
66+
command: |
67+
source activate testenv;
68+
python setup.py develop;
69+
- run:
70+
name: run tests
71+
command: |
72+
mkdir test-reports
73+
source activate testenv;
74+
pytest --junitxml=test-reports/junit.xml
75+
- store_test_results:
76+
path: test-reports
77+
- store_artifacts:
78+
path: test-reports
79+
- save_cache:
80+
key: data-cache
81+
paths:
82+
- ~/.visbrain_data

docs/_static/visbrain_styles.css

+4-4
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,12 @@ th {
7676

7777
/* ############################ ALERT ############################*/
7878
.alert-info {
79-
background-color: #47a7f5;
80-
font-weight: bold;
79+
color: black;
80+
background-color: #c7e4fc;
8181
}
8282
.alert-warning {
83-
background-color: #FD9500;
84-
font-weight: bold;
83+
color: black;
84+
background-color: #fedfb2;
8585
}
8686
.alert-primary {
8787
background-color: #4b4d39;

0 commit comments

Comments
 (0)