Skip to content

Commit a7f66ea

Browse files
author
Sylvain Chevallier
authored
dev/v0.4.3 merge to master (#231)
* Avoid leaking information between sessions (#222) * clone pipelines in CV * PR should be made against develop branch * add WithinSubject update * add test for devel branch * Add coverage (#224) * add coverage * correct test * update coverage * investigate coverage issue * change coverage dir * change coverage file * correct error in set_download_dir (#225) * correct error in set_download_dir * add whats new * update readme with BCI definition (#228) * Ensure consistent channel order in paradigm (#229) * correct channel order, add ch_names to FakeDataset * correct ref to PR in whatsnew * prepare update to 0.4.3 (#230) * update download badge * add whats new in the doc menu * correct docstring * update to moabb 0.4.3 * correct doc generation (#232) * correct doc generation * build doc on push
1 parent 1d49b35 commit a7f66ea

File tree

19 files changed

+454
-133
lines changed

19 files changed

+454
-133
lines changed

.coveragerc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[run]
2+
branch = True
3+
source = moabb
4+
include = */moabb/*
5+
omit =
6+
*/docs/*
7+
*/pipelines/*
8+
9+
[report]
10+
exclude_lines =
11+
pragma: no cover
12+
if __name__ == .__main__.:
13+
@abstractmethod
14+
@abstractclassmethod

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Docs
22

33
on:
44
push:
5-
branches: [master]
5+
branches: [master, develop]
66
pull_request:
77
branches: [master]
88

.github/workflows/test-devel.yml

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
name: Test-devel
2+
3+
on:
4+
push:
5+
branches: [develop]
6+
pull_request:
7+
branches: [develop]
8+
9+
jobs:
10+
test:
11+
name: dev ${{ matrix.os }}, py-${{ matrix.python-version }}
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
fail-fast: true
15+
matrix:
16+
os: [ubuntu-18.04, windows-latest, macOS-latest]
17+
python-version: ["3.6"]
18+
defaults:
19+
run:
20+
shell: bash
21+
steps:
22+
- uses: actions/checkout@v2
23+
24+
- name: Setup Python
25+
uses: actions/setup-python@v2
26+
with:
27+
python-version: ${{ matrix.python-version }}
28+
29+
- uses: pre-commit/[email protected]
30+
31+
- name: Install Poetry
32+
uses: snok/[email protected]
33+
with:
34+
virtualenvs-create: true
35+
virtualenvs-in-project: true
36+
37+
- name: Load cached venv
38+
if: runner.os != 'Windows'
39+
id: cached-poetry-dependencies
40+
uses: actions/cache@v2
41+
with:
42+
path: .venv
43+
key:
44+
testvenv-${{ matrix.os }}-py${{matrix.python-version}}-${{
45+
hashFiles('**/poetry.lock') }}
46+
47+
- name: Install dependencies
48+
if: |
49+
(runner.os != 'Windows') &&
50+
(steps.cached-poetry-dependencies.outputs.cache-hit != 'true')
51+
run: poetry install --no-interaction --no-root --no-dev
52+
53+
- name: Install library
54+
run: poetry install --no-interaction --no-dev
55+
56+
- name: Run tests
57+
run: |
58+
source $VENV
59+
poetry run coverage run -m unittest moabb.tests
60+
61+
- name: Run pipelines
62+
run: |
63+
source $VENV
64+
poetry run python -m moabb.run --pipelines=./moabb/tests/test_pipelines/ --verbose
65+
66+
- name: Upload Coverage to Codecov
67+
uses: codecov/codecov-action@v2
68+
if: success()
69+
with:
70+
verbose: true
71+
directory: /home/runner/work/moabb/moabb
72+
files: ./.coverage

CONTRIBUTING.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,16 @@ pull request to the master branch referencing the specific issue you addressed.
4040
1. Look for open issues or open one
4141
1. Discuss the problem and or propose a solution
4242
1. Fork it! (and clone fork locally)
43-
1. Branch from `master`: `git checkout master`
43+
1. Branch from `develop`: `git checkout --track develop`
4444
1. [Setup development environment](#setup-development-environment)
4545
1. Create your feature branch: `git checkout -b my-new-feature`
4646
1. Make changes
4747
1. Commit your changes: `git commit -m 'Add some feature'`
4848
1. Don't forget to fix issues from `pre-commit` pipeline (either add changes made by hooks
4949
or fix them manually in case of `flake8`)
5050
1. Push to the branch: `git push origin my-new-feature`
51-
1. Submit a pull request. Make sure it is based on the `master` branch when submitting! :D
51+
1. Submit a pull request. Make sure it is based on the `develop` branch when submitting!
52+
:D
5253
1. Don't forget to update the
5354
[what's new](http://moabb.neurotechx.com/docs/whats_new.html) and
5455
[documentation](http://moabb.neurotechx.com/docs/index.html) pages if needed

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<img alt="banner" src="/images/M.png/">
55
</p>
66
<p align=center>
7-
Build a comprehensive benchmark of popular BCI algorithms applied on an extensive list of freely available EEG datasets.
7+
Build a comprehensive benchmark of popular Brain-Computer Interface ([BCI](https://en.wikipedia.org/wiki/Brain%E2%80%93computer_interface)) algorithms applied on an extensive list of freely available EEG datasets.
88
</p>
99

1010
## Disclaimer
@@ -15,7 +15,7 @@ community.**
1515
[![Build Status](https://github.com/NeuroTechX/moabb/workflows/Test/badge.svg)](https://github.com/NeuroTechX/moabb/actions?query=branch%3Amaster)
1616
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
1717
[![PyPI](https://img.shields.io/pypi/v/moabb?color=blue&style=plastic)](https://img.shields.io/pypi/v/moabb)
18-
[![PyPI - Downloads](https://img.shields.io/pypi/dm/moabb?color=brightgreen&style=plastic)](https://img.shields.io/pypi/dm/moabb)
18+
[![Downloads](https://pepy.tech/badge/moabb)](https://pepy.tech/project/moabb)
1919

2020
## Welcome!
2121

@@ -41,6 +41,12 @@ one of the sections below, or just scroll down to find out more.
4141

4242
### The problem
4343

44+
[Brain-Computer Interfaces](https://en.wikipedia.org/wiki/Brain%E2%80%93computer_interface)
45+
allow to interact with a computer using brain signals. In this project, we focus mostly on
46+
electroencephalographic signals
47+
([EEG](https://en.wikipedia.org/wiki/Electroencephalography)), that is a very active
48+
research domain, with worldwide scientific contributions. Still:
49+
4450
- Reproducible Research in BCI has a long way to go.
4551
- While many BCI datasets are made freely available, researchers do not publish code, and
4652
reproducing results required to benchmark new algorithms turns out to be trickier than

codecov.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
comment: false
2+
github_checks:
3+
annotations: false
4+
5+
codecov:
6+
notify:
7+
require_ci_to_pass: no

docs/source/README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
![banner](images/M.png)
66

77
<p align=center>
8-
Build a comprehensive benchmark of popular BCI algorithms applied on an extensive list of freely available EEG datasets.
8+
Build a comprehensive benchmark of popular Brain-Computer Interface ([BCI](https://en.wikipedia.org/wiki/Brain%E2%80%93computer_interface)) algorithms applied on an extensive list of freely available EEG datasets.
99
</p>
1010

1111
## Disclaimer
@@ -16,7 +16,7 @@ community.**
1616
[![Build Status](https://github.com/NeuroTechX/moabb/workflows/Test/badge.svg)](https://github.com/NeuroTechX/moabb/actions?query=branch%3Amaster)
1717
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
1818
[![PyPI](https://img.shields.io/pypi/v/moabb?color=blue&style=plastic)](https://img.shields.io/pypi/v/moabb)
19-
[![PyPI - Downloads](https://img.shields.io/pypi/dm/moabb?color=brightgreen&style=plastic)](https://img.shields.io/pypi/dm/moabb)
19+
[![Downloads](https://pepy.tech/badge/moabb)](https://pepy.tech/project/moabb)
2020

2121
## Welcome!
2222

@@ -40,6 +40,12 @@ one of the sections below, or just scroll down to find out more.
4040

4141
### The problem
4242

43+
[Brain-Computer Interfaces](https://en.wikipedia.org/wiki/Brain%E2%80%93computer_interface)
44+
allow to interact with a computer using brain signals. In this project, we focus mostly on
45+
electroencephalographic signals
46+
([EEG](https://en.wikipedia.org/wiki/Electroencephalography)), that is a very active
47+
research domain, with worldwide scientific contributions. Still:
48+
4349
- Reproducible Research in BCI has a long way to go.
4450
- While many BCI datasets are made freely available, researchers do not publish code, and
4551
reproducing results required to benchmark new algorithms turns out to be trickier than

docs/source/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ def linkcode_resolve(domain, info): # noqa: C901
233233
# Note the "1" or "True" value above as the third argument to indicate
234234
# an arbitrary url.
235235
"navbar_links": [
236+
("What's new", "whats_new"),
236237
("API", "api"),
237238
("Gallery", "auto_examples/index"),
238239
("Tutorials", "auto_tutorials/index"),

docs/source/whats_new.rst

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,47 @@ What's new
1111
- "API changes" for backward-incompatible changes
1212
.. _current:
1313

14+
1415
Develop branch
1516
---------------
1617

1718
Enhancements
1819
~~~~~~~~~~~~
1920

21+
- None
22+
23+
Bugs
24+
~~~~
25+
26+
- None
27+
28+
API changes
29+
~~~~~~~~~~~
30+
31+
- None
32+
33+
34+
Version - 0.4.3 (Stable - PyPi)
35+
---------------
36+
37+
Enhancements
38+
~~~~~~~~~~~~
39+
2040
- Rewrite Lee2019 to add P300 and SSVEP datasets (:gh:`217` by `Pierre Guetchel`_)
2141

22-
Bugs
42+
Bugs
2343
~~~~
2444

45+
- Avoid information leakage for MNE Epochs pipelines in evaluation (:gh:`222` by `Sylvain Chevallier`_)
46+
- Correct error in set_download_dir (:gh:`225` by `Sylvain Chevallier`_)
47+
- Ensure that channel order is consistent across dataset when channel argument is specified in paradigm (:gh:`229` by `Sylvain Chevallier`_)
2548

2649
API changes
2750
~~~~~~~~~~~
2851

29-
Version - 0.4.2 (Stable - PyPi)
52+
- ch_names argument added to init of moabb.datasets.fake.FakeDataset (:gh:`229` by `Sylvain Chevallier`_)
53+
54+
Version - 0.4.2
3055
---------------
3156

3257
Enhancements

moabb/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# flake8: noqa
2-
__version__ = "0.4.2"
2+
__version__ = "0.4.3"
33

44
from moabb.utils import set_log_level

0 commit comments

Comments
 (0)