Skip to content

Commit

Permalink
Added printout statement for saving to file
Browse files Browse the repository at this point in the history
  • Loading branch information
bsutherland333 committed Aug 16, 2024
1 parent e4c23b3 commit 5404070
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion rosflight_rqt_plugins/src/param_tuning/param_tuning.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def __init__(self, context):
self._node.get_logger().fatal('No configuration file selected, please provide a configuration file like'
' rosflight_rqt_plugins/resources/example_config.yaml')
raise RuntimeError('No configuration file provided')

args.config_filepath = filename
with open(args.config_filepath, 'r') as file:
self._config = yaml.safe_load(file)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ def _save_button_callback(self):
return
else:
filepath = self._param_file_path
self._param_client.print_info(f'Saving parameters to filepath: {filepath}')

# Load the existing parameter file if it exists
if os.path.exists(filepath):
Expand Down

0 comments on commit 5404070

Please sign in to comment.