Skip to content

Commit

Permalink
pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Kallinteris-Andreas committed Mar 7, 2024
1 parent af81de4 commit 894c255
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gymnasium/utils/env_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,9 @@ def check_step_determinism(env: gym.Env, seed=123):
env.unwrapped._np_random.bit_generator.state # pyright: ignore [reportOptionalMemberAccess]
== seeded_rng.bit_generator.state
), "The `.np_random` is not properly been updated after step."
assert data_equivalence(obs_0, obs_1, True), "step observation is not deterministic."
assert data_equivalence(
obs_0, obs_1, True
), "step observation is not deterministic."
assert data_equivalence(rew_0, rew_1, True), "step reward is not deterministic."
assert data_equivalence(term_0, term_0, True), "step terminal is not deterministic."
assert (
Expand Down

0 comments on commit 894c255

Please sign in to comment.