Skip to content

Commit

Permalink
Fixing shebang and file saving in Hand Health Report (#52)
Browse files Browse the repository at this point in the history
* Fixing shebang and file saving

* Fixing year in copyright notice
  • Loading branch information
maxzieba authored Apr 8, 2022
1 parent 920f97c commit 4ada5e1
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python 3
#!/usr/bin/env python3

# Copyright 2020 Shadow Robot Company Ltd.
# Copyright 2020-2022 Shadow Robot Company Ltd.
#
# This program is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python 3
#!/usr/bin/env python3

# Copyright 2020 Shadow Robot Company Ltd.
# Copyright 2020-2022 Shadow Robot Company Ltd.
#
# This program is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python 3
#!/usr/bin/env python3

# Copyright 2020 Shadow Robot Company Ltd.
# Copyright 2020-2022 Shadow Robot Company Ltd.
#
# This program is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python 3
#!/usr/bin/env python3

# Copyright 2020 Shadow Robot Company Ltd.
# Copyright 2020-2022 Shadow Robot Company Ltd.
#
# This program is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python 3
#!/usr/bin/env python3

# Copyright 2020 Shadow Robot Company Ltd.
# Copyright 2020-2022 Shadow Robot Company Ltd.
#
# This program is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
Expand Down Expand Up @@ -69,8 +69,8 @@ def _create_checks_directory(self, home_folder_path):
def _get_hand_params(self):
hand_params = rospy.get_param("hand")
data = hand_params.get("mapping", "")
hand_serial = data.keys()[0]
hand_prefix = data.values()[0]
hand_serial = list(data.keys())[0]
hand_prefix = list(data.values())[0]
self._results["hand_info"]["hand_serial"] = hand_serial
self._results["hand_info"]["hand_prefix"] = hand_prefix
return hand_serial
Expand Down Expand Up @@ -101,7 +101,7 @@ def write_results_to_file(self, filename=None):
if filename is None:
filename = self._results_path
with open(filename, 'w') as yaml_file:
yaml.dump(self._results, stream=yaml_file, default_flow_style=False)
yaml.safe_dump(self._results, stream=yaml_file, default_flow_style=False)
rospy.signal_shutdown("All checks completed!")

def run_checks_real_hand(self):
Expand Down

0 comments on commit 4ada5e1

Please sign in to comment.