Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] add frequency API and compute coffeine API #51

Merged
merged 34 commits into from
Jul 22, 2023
Merged
Show file tree
Hide file tree
Changes from 32 commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
22b70a4
add frequency API and compute coffeine API
dengemann Jul 12, 2023
4ede86f
move new code to library
dengemann Jul 12, 2023
29396e6
update other notebook
dengemann Jul 12, 2023
3e5e887
fix pep8 ...
dengemann Jul 12, 2023
bdf4329
fix pep8 ...
dengemann Jul 12, 2023
84bd372
pep8 ...
dengemann Jul 12, 2023
35c3cfd
... fixes
dengemann Jul 12, 2023
3aa9158
fix kernel notebook
dengemann Jul 12, 2023
4e69b6f
add proper html docs [WIP] ...
dengemann Jul 16, 2023
123e0dd
rm not needed files
dengemann Jul 16, 2023
dacb831
fix sphinx errors
dengemann Jul 16, 2023
d7ff4e6
snapshot of docs
dengemann Jul 17, 2023
b9a0a20
add build workflow
dengemann Jul 18, 2023
70dd8fb
fixes
dengemann Jul 18, 2023
ec958c6
fixes..
dengemann Jul 18, 2023
ff34c4b
...fixes
dengemann Jul 18, 2023
0f06397
...fixes
dengemann Jul 18, 2023
7af2005
fix pandoc attempt
dengemann Jul 18, 2023
10d03fc
fix pandoc attempt 2
dengemann Jul 18, 2023
d21bfa1
fix updloader ...
dengemann Jul 18, 2023
242146b
fix manifest ...
dengemann Jul 18, 2023
655671e
fix doc path ...
dengemann Jul 18, 2023
8ca92f3
add missing docs and clean up stuff
dengemann Jul 20, 2023
33e4e82
update docs + fixes
dengemann Jul 20, 2023
4182b86
... fixes
dengemann Jul 20, 2023
fe0473e
... fixes
dengemann Jul 20, 2023
ba21a31
... fixes
dengemann Jul 20, 2023
0a1224a
... fixes ...
dengemann Jul 20, 2023
4b40c08
upgrade testing to python=3.9
dengemann Jul 20, 2023
8739790
add citation
dengemann Jul 20, 2023
400ae9e
doc fixes
dengemann Jul 20, 2023
babd18b
add get_frequencies test
dengemann Jul 20, 2023
fcfc274
add another test ...
dengemann Jul 21, 2023
611d612
add test for compute coffeine
dengemann Jul 22, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions .github/workflows/build_doc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Build doc

on:
workflow_dispatch:
pull_request:
push:
branches:
- 'master'

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
# Standard drop-in approach that should work for most people.

- name: Set up Python 3.9
uses: actions/setup-python@v1
with:
python-version: 3.9

- name: Get Python running
run: |
python -m pip install --user --upgrade --progress-bar off pip
python -m pip install --user --upgrade --progress-bar off -r requirements.txt
python -m pip install --user --upgrade --progress-bar off -r doc/requirements.txt
python -m pip install --user --upgrade --progress-bar off ipython "https://api.github.com/repos/sphinx-gallery/sphinx-gallery/zipball/master" memory_profiler
sudo apt install pandoc
python -m pip install --user -e .
# Look at what we have and fail early if there is some library conflict
- name: Check installation
run: |
which python
python -c "import coffeine"
python -c "import pandoc"
# Build docs
- name: Generate HTML docs
uses: rickstaa/sphinx-action@master
with:
docs-folder: "doc/"
- uses: actions/upload-artifact@v2
with:
name: Documentation
path: doc/_build/html/
2 changes: 1 addition & 1 deletion .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7]
python-version: [3.9]

steps:
- uses: actions/checkout@v2
Expand Down
14 changes: 14 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,17 @@ include LICENSE
recursive-include coffeine *.py
recursive-include notebooks *.ipynb
exclude requirements.txt
doc/generated/coffeine.spatial_filters.ProjRandomSpace.rst
doc/generated/coffeine.spatial_filters.ProjSPoCSpace.rst
doc/index.ipynb
doc/make.bat
doc/requirements.txt
doc/tutorials.ipynb
doc/tutorials/filterbank_classification_bci.ipynb
doc/tutorials/filterbank_kernel_classification_bci.ipynb
recursive-include doc *.bat
recursive-include doc *.ipynb
recursive-include doc *.py
recursive-include doc *.rst
recursive-include doc *.txt
recursive-include doc Makefile
2 changes: 1 addition & 1 deletion coffeine/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@

from .pipelines import make_filter_bank_transformer, make_filter_bank_regressor, make_filter_bank_classifier # noqa

from .power_features import compute_features # noqa
from .power_features import compute_features, get_frequency_bands, compute_coffeine, make_coffeine_data_frame # noqa

from .spatial_filters import ProjIdentitySpace, ProjCommonSpace, ProjLWSpace, ProjRandomSpace, ProjSPoCSpace # noqa
Loading
Loading