-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated docs, fixed rtd, improved test cov
- Loading branch information
Showing
25 changed files
with
197 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[flake8] | ||
exclude = | ||
docs | ||
examples/compute_*.py | ||
per-file-ignores = | ||
__init__.py: F401, | ||
*.py: E203, E741 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
div { | ||
text-align: justify; | ||
} | ||
|
||
ul { | ||
text-align: left | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
.. title:: Home | ||
|
||
.. define new line for html | ||
.. |br| raw:: html | ||
|
||
<br /> | ||
|
||
======= | ||
PyPARRM | ||
======= | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
pytest | ||
coverage | ||
flake8 | ||
black | ||
codespell | ||
pydocstyle | ||
pycodestyle | ||
pydocstyle | ||
sphinx | ||
numpydoc | ||
nbsphinx | ||
nbsphinx_link | ||
sphinxcontrib-bibtex | ||
sphinx-gallery | ||
pydata-sphinx-theme | ||
pydata-sphinx-theme | ||
notebook | ||
ipykernel | ||
ipywidgets | ||
ipython |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ | |
__version__ = "1.1.1dev" | ||
|
||
from .parrm import PARRM | ||
from .data import get_example_data_paths |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
"""Storage and tools for handling data files.""" | ||
|
||
__version__ = "1.1.1dev" | ||
|
||
from .example_data import get_example_data_paths, DATASETS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
"""Tools for fetching example data.""" | ||
|
||
import os | ||
from pathlib import Path | ||
|
||
DATASETS = {} | ||
DATASETS["example_data"] = "example_data.npy" | ||
DATASETS["example_data_artefact_free"] = "example_data_artefact_free.npy" | ||
DATASETS["matlab_filtered"] = "matlab_filtered.npy" | ||
DATASETS["ecog_lfp_data"] = "ecog_lfp_data.npy" | ||
|
||
|
||
def get_example_data_paths(name: str) -> str: | ||
"""Return the path to the requested example data. | ||
Parameters | ||
---------- | ||
name : str | ||
Name of the example data. | ||
Returns | ||
------- | ||
path : str | ||
Path to the example data. | ||
""" | ||
if name not in DATASETS.keys(): | ||
raise ValueError(f"`name` must be one of: {list(DATASETS.keys())}") | ||
|
||
filepath_upper = Path(os.path.abspath(__file__)).parent | ||
return os.path.join(filepath_upper, "example_data", DATASETS[name]) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.