Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/release-notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Improvements
- Created a new FixateError base class for all exceptions raised by fixate to use. It inherits from Exception instead of BaseExcepetion to improve error handling.
- DSO Driver function 'waveform_values' now returns a single channels x and y data as two separate lists, without re-acquiring the signal. This function should
now be called after performing signal acquisition.
- Fix user input validation. Inputting a float value of 0.0 or 0 now works as expected.

*************
Version 0.6.4
Expand Down
4 changes: 2 additions & 2 deletions src/fixate/ui_cmdline/cmd_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def _user_choices(msg, q, choices, target, attempts=5):
print("\a")
ret_val = input(reformat_text(msg + choicesstr))
ret_val = target(ret_val, choices)
if ret_val:
if ret_val is not None:
q.put(("Result", ret_val))
return
q.put(
Expand Down Expand Up @@ -227,7 +227,7 @@ def _user_input(msg, q, target=None, attempts=5, kwargs=None):
q.put(ret_val)
return
ret_val = target(ret_val, **kwargs)
if ret_val:
if ret_val is not None:
q.put(("Result", ret_val))
return
# Display failure of target and send exception
Expand Down
4 changes: 2 additions & 2 deletions src/fixate/ui_gui_qt/ui_gui_qt.py
Original file line number Diff line number Diff line change
Expand Up @@ -780,7 +780,7 @@ def _topic_UI_req_choices(self, msg, q, choices, target, attempts=5):
# This will change based on the interface
ret_val = self.gui_user_input(self.reformat_text(msg), choices)
ret_val = target(ret_val, choices)
if ret_val:
if ret_val is not None:
q.put(("Result", ret_val))
return
q.put(
Expand Down Expand Up @@ -821,7 +821,7 @@ def _topic_UI_req_input(self, msg, q, target=None, attempts=5, kwargs=None):
q.put(ret_val)
return
ret_val = target(ret_val, **kwargs)
if ret_val:
if ret_val is not None:
q.put(("Result", ret_val))
return
# Display failure of target and send exception
Expand Down
Loading