Skip to content

Commit f69785a

Browse files
saran-tcopybara-github
authored andcommitted
Bump numpy and scipy versions for Python >= 3.8.
The numpy version bump addresses CVE-2021-34141. PiperOrigin-RevId: 461840285 Change-Id: I0c85d2b8c3eeeea3ccf98ecaf6a16899cb6e9bcf
1 parent b69de33 commit f69785a

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

dm_control/composer/entity_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,8 +356,8 @@ def testSetPose(self, position, quaternion, freejoint):
356356

357357
subentity.set_pose(physics, position=position, quaternion=quaternion)
358358

359-
np.testing.assert_array_equal(physics.bind(frame).xpos, ground_truth_pos)
360-
np.testing.assert_array_equal(physics.bind(frame).xquat, ground_truth_quat)
359+
np.testing.assert_allclose(physics.bind(frame).xpos, ground_truth_pos)
360+
np.testing.assert_allclose(physics.bind(frame).xquat, ground_truth_quat)
361361

362362
@parameterized.parameters(*_param_product(
363363
original_position=[[-2, -1, -1.], [1., 0., -1.]],

requirements.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,14 @@ mock==4.0.3
99
mujoco==2.2.1
1010
nose==1.3.7
1111
nose-xunitmp==0.4.1
12-
numpy==1.21.6
12+
numpy==1.21.6; python_version == '3.7'
13+
numpy==1.23.1; python_version >= '3.8'
1314
Pillow==9.2.0
1415
protobuf==3.20.1
1516
pyopengl==3.1.6
1617
pyparsing==2.4.7
1718
requests==2.28.1
18-
scipy==1.7.3
19+
scipy==1.7.3; python_version == '3.7'
20+
scipy==1.8.1; python_version >= '3.8'
1921
setuptools==63.2.0
2022
tqdm==4.64.0

0 commit comments

Comments
 (0)