Skip to content
Merged
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 @@ -26,6 +26,7 @@ Improvements
- 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.
- Invert channel and vtime funcitons implemented in the DSO driver.
- Fxconfig fixes for cmd2 4.0.0

*************
Version 0.6.4
Expand Down
9 changes: 4 additions & 5 deletions src/fixate/core/config_util.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import cmd2
import argparse
import pyvisa
import json
import copy
Expand Down Expand Up @@ -36,13 +35,13 @@

choices = ["existing", "updated", "visa"]
# create the top-level parser for the base command
list_parser = argparse.ArgumentParser(prog="list")
list_parser = cmd2.Cmd2ArgumentParser(prog="list")
list_parser.add_argument("type", choices=choices)

test_parser = argparse.ArgumentParser(prog="test")
test_parser = cmd2.Cmd2ArgumentParser(prog="test")
test_parser.add_argument("type", choices=choices)

add_parser = argparse.ArgumentParser(prog="add")
add_parser = cmd2.Cmd2ArgumentParser(prog="add")
add_subparsers = add_parser.add_subparsers(title="add command")

add_visa_parser = add_subparsers.add_parser("visa")
Expand Down Expand Up @@ -215,7 +214,7 @@ def do_save(self, line=None):
)
except Exception as e:
self.perror(e)
if backup_file:
if backup_path:
backup_path.replace(config_file_path)
raise

Expand Down
Loading