Skip to content

Commit 31af945

Browse files
authored
Merge pull request #41 from rohanpsingh/autopep8-patches
Fixes by autopep8 action
2 parents 3e98063 + a3ed995 commit 31af945

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

mujoco_viewer/callbacks.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
import yaml
66
from threading import Lock
77

8-
MUJOCO_VERSION=tuple(map(int, mujoco.__version__.split('.')))
8+
MUJOCO_VERSION = tuple(map(int, mujoco.__version__.split('.')))
9+
910

1011
class Callbacks:
1112
def __init__(self, hide_menus):
@@ -258,7 +259,7 @@ def _mouse_button_callback(self, window, button, act, mods):
258259
selflex = np.zeros((1, 1), dtype=np.int32)
259260
selskin = np.zeros((1, 1), dtype=np.int32)
260261

261-
if MUJOCO_VERSION>=(3,0,0):
262+
if MUJOCO_VERSION >= (3, 0, 0):
262263
selbody = mujoco.mjv_select(
263264
self.model,
264265
self.data,

mujoco_viewer/mujoco_viewer.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
import yaml
77
from .callbacks import Callbacks
88

9-
MUJOCO_VERSION=tuple(map(int, mujoco.__version__.split('.')))
9+
MUJOCO_VERSION = tuple(map(int, mujoco.__version__.split('.')))
10+
1011

1112
class MujocoViewer(Callbacks):
1213
def __init__(
@@ -319,7 +320,7 @@ def add_overlay(gridpos, text1, text2):
319320
bottomleft, "FPS", "%d%s" %
320321
(1 / self._time_per_render, ""))
321322

322-
if MUJOCO_VERSION>=(3,0,0):
323+
if MUJOCO_VERSION >= (3, 0, 0):
323324
add_overlay(
324325
bottomleft, "Max solver iters", str(
325326
max(self.data.solver_niter) + 1))

0 commit comments

Comments
 (0)