Skip to content

Commit d07e7c1

Browse files
committed
fix deprecation warning
1 parent 3c67a42 commit d07e7c1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

dm_control/manipulation/lift.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ def _add_vertex_sites(self, box_geom_or_site):
6767
"""Add sites corresponding to the vertices of a box geom or site."""
6868
offsets = (
6969
(-half_length, half_length) for half_length in box_geom_or_site.size)
70-
site_positions = np.vstack(itertools.product(*offsets))
70+
71+
site_positions = list(itertools.product(*offsets))
72+
site_positions = np.vstack(site_positions)
7173
if box_geom_or_site.pos is not None:
7274
site_positions += box_geom_or_site.pos
7375
self._vertices = []

0 commit comments

Comments
 (0)