Skip to content

Commit b022223

Browse files
Fixed failing test due to gym 0.20.0 release.
1 parent ebad8ab commit b022223

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gym-unity/gym_unity/tests/test_gym.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ def create_mock_vector_steps(specs, num_agents=1, number_visual_observations=0):
248248
:BehaviorSpecs specs: The BehaviorSpecs for this mock
249249
:int num_agents: Number of "agents" to imitate in your BatchedStepResult values.
250250
"""
251-
obs = [np.array([num_agents * [1, 2, 3]]).reshape(num_agents, 3)]
251+
obs = [np.array([num_agents * [1, 2, 3]], dtype=np.float32).reshape(num_agents, 3)]
252252
if number_visual_observations:
253253
obs += [
254254
np.zeros(shape=(num_agents, 8, 8, 3), dtype=np.float32)

0 commit comments

Comments
 (0)