Skip to content

Commit

Permalink
Changed SHFQA qachannels/*/oscs/0/freq out-of-range value rounding to…
Browse files Browse the repository at this point in the history
… match LabOne API
  • Loading branch information
markheik committed Feb 7, 2023
1 parent 764849f commit ddc69f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ Unreleased
* 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.
* 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):
Expand Down
6 changes: 0 additions & 6 deletions src/zhinst/toolkit/driver/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,12 +207,6 @@ def multiple_of(value: float, factor: float, rounding: str) -> float:
lambda v: Parse.greater_equal(v, 0.0),
],
},
"qachannels/*/oscs/0/freq": {
"SetParser": [
lambda v: Parse.smaller_equal(v, 500e6),
lambda v: Parse.greater_equal(v, -500e6),
],
},
"qachannels/*/spectroscopy/length": {
"SetParser": [
lambda v: Parse.greater_equal(v, 4),
Expand Down

0 comments on commit ddc69f2

Please sign in to comment.