Skip to content

Commit 5b5b422

Browse files
committed
Merge branch 'release/v0.3.9'
2 parents 79852a7 + 4662346 commit 5b5b422

File tree

102 files changed

+6192
-6223
lines changed

Some content is hidden

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

102 files changed

+6192
-6223
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ install:
4747
# Install dependencies :
4848
- if [ "${TEST}" == "standard" ]; then
4949
pip install codecov pytest pytest-cov pytest-sugar pytest-travis-fold openpyxl;
50-
pip install mne nibabel pandas;
50+
pip install mne nibabel pandas tensorpac;
5151
pip install git+https://github.com/hbldh/lspopt.git#egg=lspopt;
5252
fi;
5353
- if [ "${TEST}" == "minimal" ]; then

Makefile

+5
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,8 @@ flake: clean-test
3838

3939
examples: clean
4040
@echo "NOT CONFIGURED YET"
41+
42+
43+
pypi:
44+
@python setup.py register -r pypi
45+
@python setup.py sdist upload -r pypi

README.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ Modules
6969
:align: center
7070

7171
* `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 polysomnographic data and hypnogram edition (see `Sleep examples <http://visbrain.org/auto_examples/index.html#sleep-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>`_).
7373
* `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>`_).
7474
* `Topo <http://visbrain.org/topo.html>`_ : display topographical maps (see `Topo examples <http://visbrain.org/auto_examples/index.html#topoplot-examples>`_).
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>`_).

appveyor.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ install:
2020
# Activate testing environnement :
2121
- activate testenv
2222
# Install dependencies :
23-
- pip install mne nibabel setuptools PyOpenGL PyOpenGL_accelerate pytest pytest-cov pytest-sugar pandas openpyxl
23+
- pip install mne nibabel setuptools PyOpenGL PyOpenGL_accelerate pytest pytest-cov pytest-sugar pandas openpyxl tensorpac
2424
- pip install git+https://github.com/hbldh/lspopt.git#egg=lspopt
2525
# ------------------- VISBRAIN -------------------
2626
- pip install -e .

circle.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ dependencies:
4343
fi;
4444
- conda install -n circleenv --yes numpy scipy pip;
4545
- pip install codecov pytest pytest-cov pytest-travis-fold;
46-
- pip install mne nibabel pandas openpyxl;
46+
- pip install mne nibabel pandas openpyxl tensorpac;
4747
- pip install git+https://github.com/hbldh/lspopt.git#egg=lspopt;
4848
- ls -al /home/ubuntu/miniconda3;
4949
- ls -al /home/ubuntu/miniconda3/bin;

docs/brain.rst

+8-20
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,15 @@ The *Brain* graphical user interface is subdivided into three main parts :
7979
* **Colorbar canvas** (*hide by default*)
8080
* **Cross-sections canvas** (*hide by default*)
8181

82-
.. note::
82+
.. .. note::
8383

84-
If you want to save the current GUI state (i.e. all buttons properties) and retrieve it later, use the menu File/Save/GUI config and File/Load/GUI config or the associated *Brain* method.
84+
.. If you want to save the current GUI state (i.e. all buttons properties) and retrieve it later, use the menu File/Save/GUI config and File/Load/GUI config or the associated *Brain* method.
8585
86-
**Examples**
87-
* :ref:`sphx_glr_auto_examples_brain_13_load_gui_config.py`
86+
.. **Examples**
87+
.. * :ref:`sphx_glr_auto_examples_brain_13_load_gui_config.py`
8888
89-
**API**
90-
* :ref:`LoadSaveConfig`
89+
.. **API**
90+
.. * :ref:`LoadSaveConfig`
9191
9292
Settings panel tabs
9393
^^^^^^^^^^^^^^^^^^^
@@ -146,18 +146,14 @@ MNI templates
146146
.. figure:: picture/picbrain/brain_templates.png
147147
:align: center
148148

149-
By default, *Brain* comes with three brain templates respectively B1 (with cerebellum), B2 and B3 (smoothest). But this list can be extended using those following functions :
150-
151-
* :ref:`ConvertMeshData` : convert vertices and faces to be compatibles with *Brain*
152-
* :ref:`AddBrainTemplate` and :ref:`RemoveBrainTemplate` : using converted vertices and faces, add/remove the template to visbrain
149+
By default, *Brain* comes with three brain templates respectively B1 (with cerebellum), B2 and B3 (smoothest).
153150

154151
Further brain templates can be downloaded `here <https://drive.google.com/open?id=0B6vtJiCQZUBvd0xfTHJqcHg2bTA>`_.
155152

156153
.. note::
157154

158155
**Examples**
159-
* :ref:`sphx_glr_auto_examples_brain_11_convert_mesh_data.py`
160-
* :ref:`sphx_glr_auto_examples_brain_02_add_brain_template.py`
156+
* :ref:`sphx_glr_auto_examples_brain_02_brain_using_vertices.py`
161157

162158
**API**
163159
* :ref:`BrainClass`
@@ -204,7 +200,6 @@ Both methods use a **radius** parameter and only vertices with an euclidian dist
204200
**Examples**
205201
* :ref:`sphx_glr_auto_examples_brain_03_sources.py`
206202
* :ref:`sphx_glr_auto_examples_brain_08_screenshot.py`
207-
* :ref:`sphx_glr_auto_examples_brain_12_colorbar_control.py`
208203

209204
**API**
210205
* :ref:`CortProj`
@@ -286,8 +281,6 @@ Cross-sections correspond to an axial, sagittal and coronal slice of the volume
286281
* :ref:`sphx_glr_auto_examples_brain_00_brain_control.py`
287282
* :ref:`sphx_glr_auto_examples_brain_10_add_nifti_volume.py`
288283

289-
**API**
290-
* :ref:`VolCrossecApi`
291284

292285
Region Of Interest (ROI)
293286
^^^^^^^^^^^^^^^^^^^^^^^^
@@ -305,8 +298,6 @@ If a volume is provided with corresponding labels, ROIs can be extracted and the
305298
* :ref:`sphx_glr_auto_examples_brain_05_region_of_interest.py`
306299
* :ref:`sphx_glr_auto_examples_brain_08_screenshot.py`
307300

308-
**API**
309-
* :ref:`RoiApi`
310301

311302
3-D volume rendering
312303
^^^^^^^^^^^^^^^^^^^^
@@ -322,8 +313,6 @@ If a volume is provided with corresponding labels, ROIs can be extracted and the
322313
* :ref:`sphx_glr_auto_examples_brain_00_brain_control.py`
323314
* :ref:`sphx_glr_auto_examples_brain_10_add_nifti_volume.py`
324315

325-
**API**
326-
* :ref:`VolCrossecApi`
327316

328317
Colorbar control
329318
~~~~~~~~~~~~~~~~
@@ -342,7 +331,6 @@ The colorbar can be controlled for individual objects including :
342331
.. note::
343332

344333
**Examples**
345-
* :ref:`sphx_glr_auto_examples_brain_12_colorbar_control.py`
346334
* :ref:`sphx_glr_auto_examples_brain_08_screenshot.py`
347335

348336
**API**

docs/changelog_futur.rst

+18-3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,23 @@ Changelog and future directions
66
Changelog
77
---------
88

9+
v0.3.8
10+
^^^^^^
11+
12+
Visbrain
13+
~~~~~~~~
14+
15+
* Added logging
16+
* Code improvements: PEP8 and flake8
17+
18+
Sleep
19+
~~~~~
20+
21+
* Simplified and improved user interface
22+
* Multitaper-based spectrogram (require `lspopt <https://github.com/hbldh/lspopt>`_ package, see doc)
23+
* Improved automatic spindles detection
24+
* Removed drag-and-drop method for hypnogram scoring
25+
926
v0.3.4
1027
^^^^^^
1128

@@ -28,9 +45,7 @@ Future directions
2845
Visbrain
2946
^^^^^^^^
3047

31-
* conda installation
32-
* Independent of the VisPy developer version for better installation (ST)
33-
* Code style improvements (flake8 and numpydoc) (ST)
48+
* Conda installation
3449
* New modules are planned (*Connect*, *Pictures*, *ERP*) (LT)
3550

3651
Brain

docs/objects.rst

+13-40
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ Here's the list of currently supported modules :
2020
* :ref:`CSObj`
2121
* :ref:`ImageObj`
2222
* :ref:`TFObj`
23-
* :ref:`SpecObj`
24-
* :ref:`MTObj`
23+
* :ref:`HypnoObj`
2524

2625
Each object inherit to the following methods :
2726

@@ -334,67 +333,41 @@ Time-frequency map object
334333

335334
.. currentmodule:: visbrain.objects
336335

337-
.. autoclass:: TimeFrequencyMapObj
336+
.. autoclass:: TimeFrequencyObj
338337
:members: set_data
339338

340339
.. rubric:: Methods
341340

342341
.. autosummary::
343-
~TimeFrequencyMapObj.set_data
342+
~TimeFrequencyObj.set_data
344343

345-
.. include:: generated/visbrain.objects.TimeFrequencyMapObj.examples
344+
.. include:: generated/visbrain.objects.TimeFrequencyObj.examples
346345
.. raw:: html
347346

348347
<div style='clear:both'></div>
349348

350349

351-
.. _SpecObj:
350+
.. _HypnoObj:
352351

353-
Spectrogram object
354-
------------------
352+
Hypnogram object
353+
----------------
355354

356-
.. figure:: picture/picobjects/pic_spec_obj.png
355+
.. figure:: picture/picobjects/pic_hypno_obj.png
357356
:align: center
358357

359-
Spectrogram object example
358+
Hypnogram object example
360359

361360
.. currentmodule:: visbrain.objects
362361

363-
.. autoclass:: SpectrogramObj
364-
:members: set_data
365-
366-
.. rubric:: Methods
367-
368-
.. autosummary::
369-
~SpectrogramObj.set_data
370-
371-
.. include:: generated/visbrain.objects.SpectrogramObj.examples
372-
.. raw:: html
373-
374-
<div style='clear:both'></div>
375-
376-
377-
.. _MTObj:
378-
379-
Multi-taper object
380-
------------------
381-
382-
.. figure:: picture/picobjects/pic_spec_obj.png
383-
:align: center
384-
385-
Multi-taper object example
386-
387-
.. currentmodule:: visbrain.objects
388-
389-
.. autoclass:: MultiTaperObj
390-
:members: set_data
362+
.. autoclass:: HypnogramObj
363+
:members: set_stage
391364

392365
.. rubric:: Methods
393366

394367
.. autosummary::
395-
~MultiTaperObj.set_data
368+
~HypnogramObj.set_stage
396369

397-
.. include:: generated/visbrain.objects.MultiTaperObj.examples
370+
.. include:: generated/visbrain.objects.HypnogramObj.examples
398371
.. raw:: html
399372

400373
<div style='clear:both'></div>
11 KB
Loading
-449 KB
Loading
-128 KB
Loading

docs/picture/picsleep/sleep_info.png

93.6 KB
Loading
-8.21 KB
Binary file not shown.

docs/picture/picsleep/sleep_main.png

-135 KB
Loading

docs/picture/picsleep/sleep_open.png

9.13 KB
Loading

docs/picture/picsleep/sleep_peak.png

-479 KB
Loading

docs/picture/picsleep/sleep_rem.png

-121 KB
Binary file not shown.
145 KB
Loading
-23.2 KB
Binary file not shown.
1.61 MB
Loading
-77.1 KB
Loading

docs/picture/picsleep/sleep_topo.png

-147 KB
Loading

0 commit comments

Comments
 (0)