Skip to content

Commit 2c1eb59

Browse files
committed
fix precommit
1 parent 35c0567 commit 2c1eb59

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

robosuite/utils/opencv_renderer.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
"""
22
opencv renderer class.
33
"""
4-
import numpy as np
5-
import cv2
64
import platform
75

6+
import cv2
7+
import numpy as np
8+
89

910
class OpenCVRenderer:
1011
def __init__(self, sim):
@@ -46,7 +47,7 @@ def render(self):
4647
self.sim.render(camera_name=cam_name, height=self.height, width=self.width)[..., ::-1]
4748
for cam_name in self.camera_names
4849
]
49-
im = np.concatenate(im, axis=1) # concatenate horizontally
50+
im = np.concatenate(im, axis=1) # concatenate horizontally
5051

5152
# write frame to window
5253
im = np.flip(im, axis=0)
@@ -80,4 +81,4 @@ def close(self):
8081
self.sim = None
8182

8283
# close window
83-
self.close_window()
84+
self.close_window()

0 commit comments

Comments
 (0)