Skip to content

Commit

Permalink
Merge branch 'master' into pr/825
Browse files Browse the repository at this point in the history
  • Loading branch information
rmatsuda committed Sep 30, 2024
2 parents bd9f4a1 + 8a97f49 commit 6bddbd0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion invesalius/net/neuronavigation_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def __bind_events(self):
Publisher.subscribe(self.update_coil_at_target, "Coil at target")
Publisher.subscribe(self.update_tracker_poses, "From Neuronavigation: Update tracker poses")
Publisher.subscribe(self.update_target_orientation, "Update target orientation")
Publisher.subscribe(self.connect_to_robot, "Neuronavigation to Robot: Connect to robot")
# Publisher.subscribe(self.connect_to_robot, "Neuronavigation to Robot: Connect to robot")
# Publisher.subscribe(self.set_target, "Neuronavigation to Robot: Set target")
# Publisher.subscribe(self.unset_target, "Neuronavigation to Robot: Unset target")
# Publisher.subscribe(
Expand Down
5 changes: 4 additions & 1 deletion invesalius/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,10 @@ def Extract(filename: Union[str, bytes, os.PathLike], folder: Union[str, bytes,
filelist = []
tar_filter = getattr(tarfile, "tar_filter", None) # For python < 3.12
for t in tar.getmembers():
tar.extract(t, path=folder, filter=tar_filter)
try:
tar.extract(t, path=folder, filter=tar_filter)
except TypeError:
tar.extract(t, path=folder)
fname = os.path.join(folder, decode(t.name, "utf-8"))
filelist.append(fname)
tar.close()
Expand Down

0 comments on commit 6bddbd0

Please sign in to comment.