Skip to content

Commit a804f4d

Browse files
authored
fix bugs in Python 3.X
fix this issue #2948
1 parent 4b85dab commit a804f4d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

research/pcl_rl/env_spec.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ def __init__(self, env, try_combining_actions=True,
8686
else:
8787
self.combine_actions = False
8888

89-
self.obs_dims_and_types = zip(self.obs_dims, self.obs_types)
90-
self.act_dims_and_types = zip(self.act_dims, self.act_types)
89+
self.obs_dims_and_types = tuple(zip(self.obs_dims, self.obs_types))
90+
self.act_dims_and_types = tuple(zip(self.act_dims, self.act_types))
9191

9292
self.total_obs_dim = sum(self.obs_dims)
9393
self.total_sampling_act_dim = sum(self.sampling_dim(dim, typ)

0 commit comments

Comments
 (0)