From b8ffdb0aee67e10c0698ee3408feaeeee6dd2e8f Mon Sep 17 00:00:00 2001 From: Salman Rahman Date: Fri, 15 May 2026 17:07:11 +0200 Subject: [PATCH 1/4] bumpversion minor --- README.rst | 4 ++-- docs/conf.py | 2 +- installer/windows/installer.cfg | 4 ++-- pyproject.toml | 4 ++-- src/explorepy/__init__.py | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.rst b/README.rst index 1389bd39..e08584be 100644 --- a/README.rst +++ b/README.rst @@ -17,9 +17,9 @@ :target: https://pypi.org/project/explorepy -.. |commits-since| image:: https://img.shields.io/github/commits-since/Mentalab-hub/explorepy/v4.4.0.svg +.. |commits-since| image:: https://img.shields.io/github/commits-since/Mentalab-hub/explorepy/v4.5.0.svg :alt: Commits since latest release - :target: https://github.com/Mentalab-hub/explorepy/compare/v4.4.0...master + :target: https://github.com/Mentalab-hub/explorepy/compare/v4.5.0...master .. |wheel| image:: https://img.shields.io/pypi/wheel/explorepy.svg diff --git a/docs/conf.py b/docs/conf.py index f763e66f..2a8ed6c0 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -28,7 +28,7 @@ year = '2018-2025' author = 'Mentalab GmbH.' copyright = '{0}, {1}'.format(year, author) -version = release = '4.4.0' +version = release = '4.5.0' pygments_style = 'trac' templates_path = ['.'] extlinks = { diff --git a/installer/windows/installer.cfg b/installer/windows/installer.cfg index 49abaf2e..5a4ea517 100644 --- a/installer/windows/installer.cfg +++ b/installer/windows/installer.cfg @@ -1,6 +1,6 @@ [Application] name=MentaLab ExplorePy -version=4.4.0 +version=4.5.0 entry_point=explorepy.cli:cli console=true icon=mentalab.ico @@ -26,7 +26,7 @@ pypi_wheels = decorator==5.1.1 distlib==0.3.7 eeglabio==0.0.2.post4 - explorepy==4.4.0 + explorepy==4.5.0 fonttools==4.42.1 idna==3.4 importlib-resources==6.0.1 diff --git a/pyproject.toml b/pyproject.toml index c746cfc0..3fb3ee4e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = 'setuptools.build_meta' [project] name = 'explorepy' -version = "4.4.0" +version = "4.5.0" license = { text = "MIT" } readme = { file = "README.rst", content-type = "text/markdown" } authors = [ @@ -64,7 +64,7 @@ explorepy = "explorepy.cli:cli" # bumpoversion config [tool.bumpversion] -current_version = "4.4.0" +current_version = "4.5.0" commit = false tag = false diff --git a/src/explorepy/__init__.py b/src/explorepy/__init__.py index 6b022a80..cfa4ad24 100644 --- a/src/explorepy/__init__.py +++ b/src/explorepy/__init__.py @@ -20,7 +20,7 @@ __all__ = ["Explore", "command", "tools", "log_config"] -__version__ = '4.4.0' +__version__ = '4.5.0' this = sys.modules[__name__] # TODO appropriate library From d0d54972278c446fbbe4b588f6f869517d0c4485 Mon Sep 17 00:00:00 2001 From: Salman Rahman Date: Fri, 15 May 2026 17:44:24 +0200 Subject: [PATCH 2/4] pip deps on toml --- pyproject.toml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 3fb3ee4e..bdadc8be 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -29,11 +29,11 @@ classifiers = [ ] dependencies = [ - 'numpy', - 'scipy', + 'numpy==2.1.3', + 'scipy==1.17.1', 'pyEDFlib==0.1.38', 'click==7.1.2', - 'appdirs==1.4.3', + 'appdirs==1.4.4', 'sentry_sdk==2.8.0', 'mne', 'eeglabio', @@ -41,9 +41,9 @@ dependencies = [ 'pyserial', 'pyyaml', 'bleak==0.22.3', - 'pylsl', + 'pylsl==1.18.2', 'numba', - 'eegprep'] + 'eegprep==0.2.23'] [tool.setuptools] package-dir = {"" = "src"} From c8a131c32ec0706ac35c75de62f14e1368dc3a19 Mon Sep 17 00:00:00 2001 From: Salman Rahman Date: Fri, 15 May 2026 21:54:35 +0200 Subject: [PATCH 3/4] remove sps from args in imp recorder --- src/explorepy/explore.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/explorepy/explore.py b/src/explorepy/explore.py index ee0024f2..0ad58a4b 100644 --- a/src/explorepy/explore.py +++ b/src/explorepy/explore.py @@ -352,7 +352,7 @@ def __init__(self, timestamps, signals): self.timestamps = timestamps self.signals = signals - def get_data(self, fs): + def get_data(self): return self.timestamps, self.signals timestamps = exg_array[:, 0] From af86e1e98e2a3590cf493cdbb2a482f5f0a707e1 Mon Sep 17 00:00:00 2001 From: Salman Rahman Date: Tue, 19 May 2026 16:00:38 +0200 Subject: [PATCH 4/4] handle invalid binary time value set only sends the time command when the time is gregorian calendar, else raise an exception --- src/explorepy/command.py | 2 ++ src/explorepy/explore.py | 12 ++++++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/explorepy/command.py b/src/explorepy/command.py index 9a4f69c1..b248b0c1 100644 --- a/src/explorepy/command.py +++ b/src/explorepy/command.py @@ -234,6 +234,8 @@ def __init__(self): self.opcode = OpcodeID.CMD_SET_EMMC_TIME from datetime import datetime now = datetime.now() + if not (2020 < now.year < 2099): + raise ValueError(f"Unsupported year: {now.year}") date_time = bytes( [ now.year - 2000, diff --git a/src/explorepy/explore.py b/src/explorepy/explore.py index 0ad58a4b..423e2351 100644 --- a/src/explorepy/explore.py +++ b/src/explorepy/explore.py @@ -661,10 +661,14 @@ def set_binary_time(self): Returns: bool: True for success, False otherwise """ - cmd = SetBinaryTime() - if self.stream_processor.configure_device(cmd): - logger.info('Device set to current time.') - return True + try: + cmd = SetBinaryTime() + if self.stream_processor.configure_device(cmd): + logger.info('Device set to current time.') + return True + except ValueError as e: + logger.error('Error on setting the binary file time: {}'.format(e)) + return False def reset_soft(self): """Reset the device to the default settings