Skip to content

Commit 0f8b864

Browse files
sylvchevSylvain ChevallierPierreGtchqbarthelemybruAristimunha
authored
Release candidate for v1.0.0 (#502)
* enh: update to RC * fix: add versionadded * fix: update poetry dependencies * enh: update deployment tools * enh: update dependencies * fix: correct error in doc building * fix: error with tensorflow 3.13 * fix: add classes_ to SSVEP_CCA to comply with new sklearn version * fix: precommit CI * fix: SSVEP_CCA classes_ and onehot vector * Try fix subject int instead of str * update requirements.txt * fix: remove requirement, pip compatible with pyproject.toml * fix: avoid downloading dataset in CI * fix: do not build VR examples to avoid zenodo timeout * fix: revert to urllib3 <= 2 to fix timeout in CI * revert: put back VR-PC example * fix: revert to h5py 3.8 * fix: do not build examples with error after dependency update * Improve msg * Improve msg * fixing crop --------- Co-authored-by: Sylvain Chevallier <[email protected]> Co-authored-by: PierreGtch <[email protected]> Co-authored-by: qbarthelemy <[email protected]> Co-authored-by: bruAristimunha <[email protected]>
1 parent d8d4b7f commit 0f8b864

25 files changed

+1250
-1656
lines changed

.github/workflows/docs.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
python-version: ["3.9"]
1717

1818
steps:
19-
- uses: actions/checkout@v3
19+
- uses: actions/checkout@v4
2020

2121
- name: Create local data folder
2222
run: |
@@ -44,10 +44,10 @@ jobs:
4444
4545
- name: Install dependencies
4646
if: steps.cached-dataset-docs.outputs.cache-hit != 'true'
47-
run: poetry install --no-interaction --no-root --with docs,deeplearning
47+
run: poetry install --no-interaction --no-root --with docs --extras deeplearning
4848

4949
- name: Install library
50-
run: poetry install --no-interaction --with docs,deeplearning
50+
run: poetry install --no-interaction --with docs --extras deeplearning
5151

5252
- name: Build docs
5353
run: |
@@ -69,7 +69,7 @@ jobs:
6969
os: [ubuntu-latest]
7070

7171
steps:
72-
- uses: actions/checkout@v3
72+
- uses: actions/checkout@v4
7373

7474
- name: Create local data folder
7575
run: |
@@ -85,7 +85,7 @@ jobs:
8585
docs/build
8686
8787
- name: Checkout moabb.github.io
88-
uses: actions/checkout@v3
88+
uses: actions/checkout@v4
8989
with:
9090
repository: "NeuroTechX/moabb.github.io"
9191
path: moabb-ghio
@@ -101,7 +101,7 @@ jobs:
101101
os: [ubuntu-latest]
102102

103103
steps:
104-
- uses: actions/checkout@v3
104+
- uses: actions/checkout@v4
105105

106106
- name: Create local data folder
107107
run: |
@@ -117,7 +117,7 @@ jobs:
117117
docs/build
118118
119119
- name: Checkout gh pages
120-
uses: actions/checkout@v3
120+
uses: actions/checkout@v4
121121
with:
122122
ref: gh-pages
123123
path: moabb-ghpages

.github/workflows/test-devel.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
run:
2020
shell: bash
2121
steps:
22-
- uses: actions/checkout@v3
22+
- uses: actions/checkout@v4
2323

2424
- name: Setup Python
2525
uses: actions/setup-python@v4
@@ -46,11 +46,11 @@ jobs:
4646
if: |
4747
(runner.os != 'Windows') &&
4848
(steps.cached-poetry-dependencies.outputs.cache-hit != 'true')
49-
run: poetry install --no-interaction --no-root --with deeplearning
49+
run: poetry install --no-interaction --no-root --extras deeplearning
5050

5151
- name: Install library (Linux/OSX)
5252
if: ${{ runner.os != 'Windows' }}
53-
run: poetry install --no-interaction --with deeplearning
53+
run: poetry install --no-interaction --extras deeplearning
5454

5555
- name: Install library (Windows)
5656
if: ${{ runner.os == 'Windows' }}

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
run:
2020
shell: bash
2121
steps:
22-
- uses: actions/checkout@v3
22+
- uses: actions/checkout@v4
2323

2424
- name: Setup Python
2525
uses: actions/setup-python@v4
@@ -46,11 +46,11 @@ jobs:
4646
if: |
4747
(runner.os != 'Windows') &&
4848
(steps.cached-poetry-dependencies.outputs.cache-hit != 'true')
49-
run: poetry install --no-interaction --no-root --with deeplearning
49+
run: poetry install --no-interaction --no-root --extras deeplearning
5050

5151
- name: Install library (Linux/OSX)
5252
if: ${{ runner.os != 'Windows' }}
53-
run: poetry install --no-interaction --with deeplearning
53+
run: poetry install --no-interaction --extras deeplearning
5454

5555
- name: Install library (Windows)
5656
if: ${{ runner.os == 'Windows' }}

bash/meta_requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
mne
2-
#if you want used a specific branch instead of branch devolop
2+
#if you want used a specific branch instead of branch develop
33
#changing the branch name git+REPOSITORY_LINK@BRANCH#egg=MOABB
44
git+https://github.com/NeuroTechX/moabb#egg=moabb
55
gdown

docs/source/whats_new.rst

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,24 @@ Develop branch
1818
Enhancements
1919
~~~~~~~~~~~~
2020

21+
- None
22+
23+
Bugs
24+
~~~~
25+
26+
- None
27+
28+
API changes
29+
~~~~~~~~~~~
30+
31+
- None
32+
33+
34+
Version - 1.0.0 (Stable - PyPi)
35+
---------------------------------
36+
37+
Enhancements
38+
~~~~~~~~~~~~
2139

2240
- Adding extra thank you section in the documentation (:gh:`390` by `Bruno Aristimunha`_)
2341
- Adding new script to get the meta information of the datasets (:gh:`389` by `Bruno Aristimunha`_)
@@ -59,7 +77,7 @@ Bugs
5977

6078
- Restore 3 subject from Cho2017 (:gh:`392` by `Igor Carrara`_ and `Sylvain Chevallier`_)
6179
- Correct downloading with VirtualReality BrainInvaders dataset (:gh:`393` by `Gregoire Cattan`_)
62-
- Rename event `substraction` to `subtraction` in :func:`moabb.datasets.Shin2017B` (:gh:`397` by `Pierre Guetschel`_)
80+
- Rename event `subtraction` in :func:`moabb.datasets.Shin2017B` (:gh:`397` by `Pierre Guetschel`_)
6381
- Save parameters of :func:`moabb.datasets.PhysionetMI` (:gh:`403` by `Pierre Guetschel`_)
6482
- Fixing issue with parallel evaluation (:gh:`401` by `Bruno Aristimunha`_ and `Igor Carrara`_)
6583
- Fixing SSLError from BCI competition IV (:gh:`404` by `Bruno Aristimunha`_)
@@ -81,15 +99,16 @@ Bugs
8199
- Removing joblib Parallel (:gh:`488` by `Igor Carrara`_)
82100
- Fix case when events specified via ``raw.annotations`` but no events (:gh:`491` by `Pierre Guetschel`_)
83101
- Fix bug in downloading Shin2017A dataset (:gh:`493` by `Igor Carrara`_)
102+
- Fix the cropped option in the dataset preprocessing (:gh:`502` by `Bruno Aristimunha`_)
84103

85104
API changes
86105
~~~~~~~~~~~
87106

88107
- None
89108

90109

91-
Version - 0.5.0 (Stable - PyPi)
92-
---------------------------------
110+
Version - 0.5.0
111+
---------------
93112

94113
Enhancements
95114
~~~~~~~~~~~~
@@ -316,7 +335,7 @@ Bugs
316335
- Use stim_channels or check annotation when loading files in Paradigm (:gh:`72` by `Jan Sosulski`_)
317336
- Correct MNE issues (:gh:`76` by `Sylvain Chevallier`_)
318337
- Fix capitalization in channel names of cho dataset (:gh:`90` by `Jan Sosulski`_)
319-
- Correct failling CI tests (:gh:`100` by `Sylvain Chevallier`_)
338+
- Correct failing CI tests (:gh:`100` by `Sylvain Chevallier`_)
320339
- Fix EPFL dataset flat signal sections and wrong scaling (:gh:`104` and :gh:`96` by `Jan Sosulski`_)
321340
- Fix schirrmeister dataset for Python3.8 (:gh:`105` by `Robin Schirrmeister`_)
322341
- Correct event detection problem and duplicate event error (:gh:`106` by `Sylvain Chevallier`_)
File renamed without changes.

moabb/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# flake8: noqa
2-
__version__ = "0.5.0"
2+
__version__ = "1.0.0"
33

44
from .benchmark import benchmark
5-
from .utils import set_download_dir, set_log_level, setup_seed
5+
from .utils import make_process_pipelines, set_download_dir, set_log_level, setup_seed

moabb/analysis/results.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,9 @@ def add(self, results, pipelines, process_pipeline): # noqa: C901
120120
"""Add results."""
121121

122122
def to_list(res):
123-
if type(res) is dict:
123+
if isinstance(res, dict):
124124
return [res]
125-
elif type(res) is not list:
125+
elif not isinstance(res, list):
126126
raise ValueError(
127127
"Results are given as neither dict nor"
128128
"list but {}".format(type(res).__name__)

0 commit comments

Comments
 (0)