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
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## [0.4.2] - 2024-01-02
### Changed
- Changed `rockrl.utils.VectorizedEnv` to return info dictionaries in list instead of tuples


## [0.4.1] - 2023-12-08
### Changed
- Removed `tensorflow_probability` dependency
Expand Down
2 changes: 1 addition & 1 deletion rockrl/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.4.1"
__version__ = "0.4.2"
4 changes: 2 additions & 2 deletions rockrl/utils/vectorizedEnv.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def reset(self, index=None): # return states
for conn in self.conns:
conn[0].send('reset')
states, infos = zip(*[conn[0].recv() for conn in self.conns])
return np.array(states), infos
return np.array(states), list(infos)
else:
self.conns[index][0].send('reset')
state, info = self.conns[index][0].recv()
Expand All @@ -87,7 +87,7 @@ def step(self, actions):
results = [conn[0].recv() for conn in self.conns]
next_states, rewards, terminateds, truncateds, infos = zip(*results)

return np.array(next_states), np.array(rewards), np.array(terminateds), np.array(truncateds), infos
return np.array(next_states), np.array(rewards), np.array(terminateds), np.array(truncateds), list(infos)

def render(self, index=None):
if index is None:
Expand Down