-
Notifications
You must be signed in to change notification settings - Fork 185
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented CLI functionality; changed references of muse-lsl to muselsl
- Loading branch information
Showing
6 changed files
with
72 additions
and
48 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
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,7 +1,11 @@ | ||
from muselsl import muse_stream | ||
|
||
muses = muse_stream.list_muses() | ||
muse_stream.stream(muses[0]['address']) | ||
|
||
# Note: Streaming is synchronous, so code here will not execute until the stream has been closed | ||
print('Stream has ended') | ||
if not muses: | ||
print('No Muses found') | ||
else: | ||
muse_stream.stream(muses[0]['address']) | ||
|
||
# Note: Streaming is synchronous, so code here will not execute until the stream has been closed | ||
print('Stream has ended') |
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 @@ | ||
from .cli import main | ||
main() |
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 |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
from shutil import copyfile | ||
import os | ||
|
||
|
||
def copy_docs(): | ||
docs_dir = 'muselsl/docs' | ||
if not os.path.exists(docs_dir): | ||
|
@@ -10,6 +11,7 @@ def copy_docs(): | |
copyfile('README.md', docs_dir + '/README.md') | ||
#copyfile('blinks.png', docs_dir + '/blinks.png') | ||
|
||
|
||
copy_docs() | ||
|
||
setup(name='muselsl', | ||
|
@@ -20,33 +22,38 @@ def copy_docs(): | |
author='Alexandre Barachant', | ||
author_email='[email protected]', | ||
license='BSD (3-clause)', | ||
scripts=['muselsl/muse-lsl.py'], | ||
entry_points={ | ||
'console_scripts': [ | ||
'muselsl=muselsl.cli:main', | ||
], | ||
}, | ||
packages=find_packages(), | ||
package_data={'muselsl': ['docs/README.md']}, | ||
package_data={'muselsl': ['docs/README.md', 'docs/examples/*']}, | ||
include_package_data=True, | ||
zip_safe=False, | ||
install_requires=['bitstring', 'pylsl', 'pygatt', 'pandas', 'scikit-learn', 'numpy', 'seaborn', 'pexpect'], | ||
install_requires=['bitstring', 'pylsl', 'pygatt', | ||
'pandas', 'scikit-learn', 'numpy', 'seaborn', 'pexpect'], | ||
extras_require={'Viewer V2': ['mne', 'vispy']}, | ||
classifiers=[ | ||
# How mature is this project? Common values are | ||
# 3 - Alpha | ||
# 4 - Beta | ||
# 5 - Production/Stable | ||
'Development Status :: 4 - Beta', | ||
|
||
# Indicate who your project is intended for | ||
'Intended Audience :: Science/Research', | ||
'Topic :: Software Development :: Utilities', | ||
|
||
# Pick your license as you wish (should match "license" above) | ||
'License :: OSI Approved :: BSD License', | ||
|
||
# Specify the Python versions you support here. In particular, ensure | ||
# that you indicate whether you support Python 2, Python 3 or both. | ||
'Operating System :: Microsoft :: Windows', | ||
'Operating System :: POSIX', | ||
'Operating System :: Unix', | ||
'Operating System :: MacOS' | ||
|
||
'Programming Language :: Python'] | ||
) | ||
# How mature is this project? Common values are | ||
# 3 - Alpha | ||
# 4 - Beta | ||
# 5 - Production/Stable | ||
'Development Status :: 4 - Beta', | ||
|
||
# Indicate who your project is intended for | ||
'Intended Audience :: Science/Research', | ||
'Topic :: Software Development :: Utilities', | ||
|
||
# Pick your license as you wish (should match "license" above) | ||
'License :: OSI Approved :: BSD License', | ||
|
||
# Specify the Python versions you support here. In particular, ensure | ||
# that you indicate whether you support Python 2, Python 3 or both. | ||
'Operating System :: Microsoft :: Windows', | ||
'Operating System :: POSIX', | ||
'Operating System :: Unix', | ||
'Operating System :: MacOS' | ||
|
||
'Programming Language :: Python'] | ||
) |