From ef120ddd4e1b4d8e6a840d5bd596bc9bd2d18aea Mon Sep 17 00:00:00 2001 From: Markus Heikkinen Date: Tue, 7 Feb 2023 12:22:43 +0100 Subject: [PATCH] Change 0.5.2 version references to 0.5.1 --- CHANGELOG.md | 17 ++++++----------- src/zhinst/toolkit/driver/devices/pqsc.py | 2 +- src/zhinst/toolkit/exceptions.py | 4 ++-- 3 files changed, 9 insertions(+), 14 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index affcf607..565b987d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,22 +1,17 @@ # zhinst-toolkit Changelog -## Version 0.5.2 - -Unreleased - -* Improved verbosity of the error message when invalid attributes of `CommandTable.header` and `CommandTable.table` are used. +## Version 0.5.1 +* Added full support for the following LabOne modules (no need to fallback to `zhinst.core`): + * Impedance Module + * Precompensation Advisor Module * Introduced new base exception class `zhinst.toolkit.exceptions.ToolkitError`, deriving from `RuntimeError`. * Changed some `RuntimeError` exceptions to `ToolkitError`. * Added `find_zsync_worker_port()` to `PQSC` device class. The function can be used to find the ID of the PQSC ZSync port connected to a given device. +* Added `session` property to `BaseInstrument`. This enables getting the given `Session` from the instrument. * Changed SHFQA node `qachannels/*/oscs/0/freq` value range from (-500e6 Hz, 500e6 Hz) to (-1e9 Hz, 1e9 Hz). Out-of-range values now rounds to (-1e9 Hz, 1e9 Hz). The functionality is changed to be consistent with LabOne UI. - -## Version 0.5.1 -* Added full support for the following LabOne modules (no need to fallback to zhinst.core): - * Impedance Module - * Precompensation Advisor Module -* Added `session` property to `BaseInstrument`. This enables getting the given `Session` from the instrument. +* Improved verbosity of the error message when invalid attributes of `CommandTable.header` and `CommandTable.table` are used. * Fix issue with downloading waveforms from the device. This issue prevented indexes larger than 9 to be read from the device. ## Version 0.5.0 diff --git a/src/zhinst/toolkit/driver/devices/pqsc.py b/src/zhinst/toolkit/driver/devices/pqsc.py index 99fce317..431fc1ff 100644 --- a/src/zhinst/toolkit/driver/devices/pqsc.py +++ b/src/zhinst/toolkit/driver/devices/pqsc.py @@ -236,7 +236,7 @@ def find_zsync_worker_port(self, device: BaseInstrument) -> int: RuntimeError: If the given device doesn't appear to be connected to the PQSC via ZSync. - .. versionadded:: 0.5.2 + .. versionadded:: 0.5.1 """ device_serial = device.serial[3:] node_to_serial_dict = self.zsyncs["*"].connection.serial() diff --git a/src/zhinst/toolkit/exceptions.py b/src/zhinst/toolkit/exceptions.py index 2a6bf0a9..76a588f4 100644 --- a/src/zhinst/toolkit/exceptions.py +++ b/src/zhinst/toolkit/exceptions.py @@ -4,14 +4,14 @@ class ToolkitError(RuntimeError): """Base class for `zhinst.toolkit` errors. - .. versionadded:: 0.5.2 + .. versionadded:: 0.5.1 """ class ValidationError(ToolkitError): """Data validation failed. - .. versionchanged:: 0.5.2 + .. versionchanged:: 0.5.1 Changed base class from `Exception` to `ToolkitError`. """