src/seals/testing/envs.py
def assert_equal_rollout(rollout_a: Rollout, rollout_b: Rollout) -> None:
    """Checks rollouts for equality.

    Raises:
        AssertionError if they are not equal.
    """
    for step_a, step_b in zip(rollout_a, rollout_b):
        ob_a, rew_a, done_a, info_a = step_a
        ob_b, rew_b, done_b, info_b = step_b
        np.testing.assert_equal(ob_a, ob_b)
        assert rew_a == rew_b
        assert done_a == done_b
        np.testing.assert_equal(info_a, info_b)
Checks rollouts for equality.

    Raises:
        AssertionError if they are not equal.
    
Checks rollouts for equality.
Raises:
AssertionError if they are not equal.
Checks rollouts for equality . Raises : AssertionError if they are not equal .
def assert_equal_rollout(rollout_a: Rollout, rollout_b: Rollout) -> None:
    for step_a, step_b in zip(rollout_a, rollout_b):
        ob_a, rew_a, done_a, info_a = step_a
        ob_b, rew_b, done_b, info_b = step_b
        np.testing.assert_equal(ob_a, ob_b)
        assert rew_a == rew_b
        assert done_a == done_b
        np.testing.assert_equal(info_a, info_b)
def assert_equal_rollout ( rollout_a : Rollout , rollout_b : Rollout ) -> None : for step_a , step_b in zip ( rollout_a , rollout_b ) : ob_a , rew_a , done_a , info_a = step_a ob_b , rew_b , done_b , info_b = step_b np . testing . assert_equal ( ob_a , ob_b ) assert rew_a == rew_b assert done_a == done_b np . testing . assert_equal ( info_a , info_b )
Checks rollouts for equality.
Checks rollouts for equality .
"""Checks rollouts for equality.

    Raises:
        AssertionError if they are not equal.
    """
rollout_a
Rollout
rollout_b
Rollout