Skip to content

Commit af4cd11

Browse files
yuvaltassasaran-t
authored andcommitted
Use @ operator in Camera.matrix.
PiperOrigin-RevId: 344020959 Change-Id: I5be1d53fa3d897950aa0bd00dd03439d19c4c856
1 parent bea795e commit af4cd11

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

dm_control/mujoco/engine.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,7 @@ def matrix(self):
725725
image = np.eye(3)
726726
image[0, 2] = (self.width - 1) / 2.0
727727
image[1, 2] = (self.height - 1) / 2.0
728-
return image.dot(focal).dot(rotation).dot(translation)
728+
return image @ focal @ rotation @ translation
729729

730730
def update(self, scene_option=None):
731731
"""Updates geometry used for rendering.

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def is_excluded(s):
177177

178178
setup(
179179
name='dm_control',
180-
version='0.0.340626854',
180+
version='0.0.344020959',
181181
description='Continuous control environments and MuJoCo Python bindings.',
182182
author='DeepMind',
183183
license='Apache License, Version 2.0',

0 commit comments

Comments
 (0)