Skip to content

Commit

Permalink
Fixed jls version check in record.
Browse files Browse the repository at this point in the history
  • Loading branch information
mliberty1 committed Apr 20, 2023
1 parent ec2b4a9 commit bcf2fb6
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 4 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@
This file contains the list of changes made to the Joulescope driver.


## 1.3.4

2023 Apr 20 [in progress]

* Fixed record jls version check.


## 1.3.3

2023 Apr 19
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ else()
endif()

project(JOULESCOPE_DRIVER
VERSION 1.3.3
VERSION 1.3.4
LANGUAGES C)
SET(PROJECT_PREFIX JSDRV)
SET(VERSION_STRING "${PROJECT_VERSION}")
Expand Down
2 changes: 1 addition & 1 deletion include/jsdrv/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
*
* Changes in the patch version indicate bug fixes and improvements.
*/
#define JSDRV_VERSION_PATCH 3
#define JSDRV_VERSION_PATCH 4

/**
* \brief The maximum version string length.
Expand Down
2 changes: 1 addition & 1 deletion pyjoulescope_driver/record.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def __init__(self, driver, device_path, signals=None):
if Writer is None:
raise RuntimeError('pyjls package not found. Install using:\n' +
' pip3 install -U pyjls')
pyjls_version = [int(x) for x in __version__.split('.')]
pyjls_version = tuple([int(x) for x in __version__.split('.')])
if pyjls_version < _PYJLS_VERSION_MIN or pyjls_version >= _PYJLS_VERSION_MAX:
raise ImportError(f'Unsupported pyjls version {__version__}\n' +
f' Require {_PYJLS_VERSION_MIN} <= pyjls version < {_PYJLS_VERSION_MAX}\n' +
Expand Down
2 changes: 1 addition & 1 deletion pyjoulescope_driver/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# limitations under the License.


__version__ = "1.3.3"
__version__ = "1.3.4"

__title__ = "pyjoulescope_driver"
__description__ = 'Joulescope™ driver'
Expand Down

0 comments on commit bcf2fb6

Please sign in to comment.