Skip to content

Commit

Permalink
[BugFix] Remove unnecessary conversion of info to NumPy (#791) (#796)
Browse files Browse the repository at this point in the history
The conversion of `info` to NumPy in `self._last_info` is unnecessary as `self._last_info` is never used. This line could also raise exceptions for certain `info` dictionaries. Fixes #791.
  • Loading branch information
hesic73 authored Jan 17, 2025
1 parent 77872e6 commit 3e948a5
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion mani_skill/utils/wrappers/record.py
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,6 @@ def step(self, action):
)
else:
self._trajectory_buffer.fail = None
self._last_info = common.to_numpy(info)

if self.save_video:
self._video_steps += 1
Expand Down

0 comments on commit 3e948a5

Please sign in to comment.