-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Use black code formatting + GH Actions * Reformat setup and conf
- Loading branch information
1 parent
4d87b5c
commit a281d55
Showing
29 changed files
with
1,767 additions
and
1,259 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,10 @@ | ||
name: Lint | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: psf/black@stable |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[tool.black] | ||
line-length = 100 |
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 |
---|---|---|
|
@@ -6,71 +6,73 @@ | |
LONG_DESCRIPTION = """YASA (Yet Another Spindle Algorithm) : fast and robust detection of spindles, slow-waves, and rapid eye movements from sleep EEG recordings.. | ||
""" | ||
|
||
DISTNAME = 'yasa' | ||
MAINTAINER = 'Raphael Vallat' | ||
MAINTAINER_EMAIL = '[email protected]' | ||
URL = 'https://github.com/raphaelvallat/yasa/' | ||
LICENSE = 'BSD (3-clause)' | ||
DOWNLOAD_URL = 'https://github.com/raphaelvallat/yasa/' | ||
VERSION = '0.6.1' | ||
PACKAGE_DATA = {'yasa.data.icons': ['*.svg']} | ||
DISTNAME = "yasa" | ||
MAINTAINER = "Raphael Vallat" | ||
MAINTAINER_EMAIL = "[email protected]" | ||
URL = "https://github.com/raphaelvallat/yasa/" | ||
LICENSE = "BSD (3-clause)" | ||
DOWNLOAD_URL = "https://github.com/raphaelvallat/yasa/" | ||
VERSION = "0.6.1" | ||
PACKAGE_DATA = {"yasa.data.icons": ["*.svg"]} | ||
|
||
INSTALL_REQUIRES = [ | ||
'numpy', | ||
'scipy', | ||
'pandas', | ||
'matplotlib', | ||
'seaborn', | ||
'mne>=0.20.0', | ||
'numba', | ||
'outdated', | ||
'antropy', | ||
'scikit-learn', | ||
'tensorpac>=0.6.5', | ||
'pyriemann>=0.2.7', | ||
'sleepecg>=0.5.0', | ||
'lspopt', | ||
'ipywidgets', | ||
'joblib' | ||
"numpy", | ||
"scipy", | ||
"pandas", | ||
"matplotlib", | ||
"seaborn", | ||
"mne>=0.20.0", | ||
"numba", | ||
"outdated", | ||
"antropy", | ||
"scikit-learn", | ||
"tensorpac>=0.6.5", | ||
"pyriemann>=0.2.7", | ||
"sleepecg>=0.5.0", | ||
"lspopt", | ||
"ipywidgets", | ||
"joblib", | ||
] | ||
|
||
PACKAGES = [ | ||
'yasa', | ||
"yasa", | ||
] | ||
|
||
CLASSIFIERS = [ | ||
'Intended Audience :: Science/Research', | ||
'Programming Language :: Python :: 3.7', | ||
'Programming Language :: Python :: 3.8', | ||
'Programming Language :: Python :: 3.9', | ||
'License :: OSI Approved :: BSD License', | ||
'Operating System :: POSIX', | ||
'Operating System :: Unix', | ||
'Operating System :: MacOS' | ||
"Intended Audience :: Science/Research", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"License :: OSI Approved :: BSD License", | ||
"Operating System :: POSIX", | ||
"Operating System :: Unix", | ||
"Operating System :: MacOS", | ||
] | ||
|
||
try: | ||
from setuptools import setup | ||
|
||
_has_setuptools = True | ||
except ImportError: | ||
from distutils.core import setup | ||
|
||
if __name__ == "__main__": | ||
|
||
setup(name=DISTNAME, | ||
author=MAINTAINER, | ||
author_email=MAINTAINER_EMAIL, | ||
maintainer=MAINTAINER, | ||
maintainer_email=MAINTAINER_EMAIL, | ||
description=DESCRIPTION, | ||
long_description=LONG_DESCRIPTION, | ||
license=LICENSE, | ||
url=URL, | ||
version=VERSION, | ||
download_url=DOWNLOAD_URL, | ||
install_requires=INSTALL_REQUIRES, | ||
include_package_data=True, | ||
packages=PACKAGES, | ||
package_data=PACKAGE_DATA, | ||
classifiers=CLASSIFIERS, | ||
) | ||
setup( | ||
name=DISTNAME, | ||
author=MAINTAINER, | ||
author_email=MAINTAINER_EMAIL, | ||
maintainer=MAINTAINER, | ||
maintainer_email=MAINTAINER_EMAIL, | ||
description=DESCRIPTION, | ||
long_description=LONG_DESCRIPTION, | ||
license=LICENSE, | ||
url=URL, | ||
version=VERSION, | ||
download_url=DOWNLOAD_URL, | ||
install_requires=INSTALL_REQUIRES, | ||
include_package_data=True, | ||
packages=PACKAGES, | ||
package_data=PACKAGE_DATA, | ||
classifiers=CLASSIFIERS, | ||
) |
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 |
---|---|---|
|
@@ -12,10 +12,9 @@ | |
from outdated import warn_if_outdated | ||
|
||
# Define YASA logger | ||
logging.basicConfig(format='%(asctime)s | %(levelname)s | %(message)s', | ||
datefmt='%d-%b-%y %H:%M:%S') | ||
logging.basicConfig(format="%(asctime)s | %(levelname)s | %(message)s", datefmt="%d-%b-%y %H:%M:%S") | ||
|
||
__author__ = "Raphael Vallat <[email protected]>" | ||
__author__ = "Raphael Vallat <[email protected]>" | ||
__version__ = "0.6.1" | ||
|
||
# Warn if a newer version of YASA is available | ||
|
Oops, something went wrong.