Skip to content

Commit

Permalink
Fix test due to rounding error
Browse files Browse the repository at this point in the history
  • Loading branch information
araffin committed Jan 25, 2025
1 parent 1e32fe1 commit db6066f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_vec_normalize.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ def test_get_original():
assert not np.array_equal(orig_obs, obs)
assert not np.array_equal(orig_rewards, rewards)
np.testing.assert_allclose(venv.normalize_obs(orig_obs), obs)
np.testing.assert_allclose(venv.normalize_reward(orig_rewards), rewards)
np.testing.assert_allclose(venv.normalize_reward(orig_rewards), rewards, atol=1e-6)


def test_get_original_dict():
Expand Down

0 comments on commit db6066f

Please sign in to comment.