From ee1f513ba1d284f0dd705a3a55b095478531e75c Mon Sep 17 00:00:00 2001 From: "morrisondano@gmail.com" Date: Sun, 2 Jun 2024 14:42:03 -0400 Subject: [PATCH] v2.3.1: fix CLI arg config --- muselsl/__init__.py | 2 +- muselsl/__main__.py | 8 +++++++- muselsl/cli.py | 2 +- setup.py | 2 +- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/muselsl/__init__.py b/muselsl/__init__.py index ec74d10..b9f682f 100644 --- a/muselsl/__init__.py +++ b/muselsl/__init__.py @@ -1,4 +1,4 @@ from .stream import stream, list_muses from .record import record, record_direct from .view import view -__version__ = "2.3.0" +__version__ = "2.3.1" diff --git a/muselsl/__main__.py b/muselsl/__main__.py index c394339..ad43bd2 100644 --- a/muselsl/__main__.py +++ b/muselsl/__main__.py @@ -11,6 +11,7 @@ def main(): list List available Muse devices. -b --backend BLE backend to use. can be auto, bluemuse, gatt or bgapi. -i --interface The interface to use, 'hci0' for gatt or a com port for bgapi. + -l --log Set the logging level stream Start an LSL stream from Muse headset. -a --address Device MAC address. @@ -20,8 +21,13 @@ def main(): -p --ppg Include PPG data -c --acc Include accelerometer data -g --gyro Include gyroscope data + -l --log Set the logging level + -r --retries How many times to retry connecting to the device on a failed attempt --disable-eeg Disable EEG data - + --disable-light Turn off light on the Muse S headband' + --lsltime Use pylsl's local_clock() for timestamps instead of Python's time.time() + --preset Select preset which dictates data channels to be streamed + view Visualize EEG data from an LSL stream. -w --window Window length to display in seconds. -s --scale Scale in uV. diff --git a/muselsl/cli.py b/muselsl/cli.py index d872c81..f3b9d28 100644 --- a/muselsl/cli.py +++ b/muselsl/cli.py @@ -118,7 +118,7 @@ def stream(self): "--retries", default=1, dest='retries', - action="store_true", + type=int, help="How many times to retry connecting to the device on a failed attempt") parser.add_argument( '-l', diff --git a/setup.py b/setup.py index e9c9eae..bb84eb3 100644 --- a/setup.py +++ b/setup.py @@ -24,7 +24,7 @@ def copy_docs(): setup( name="muselsl", - version="2.3.0", + version="2.3.1", description="Stream and visualize EEG data from the Muse headset.", keywords="muse lsl eeg ble neuroscience", url="https://github.com/alexandrebarachant/muse-lsl/",