8eb09c72d4df0ca06aa3090afe35ed1d9891fccb,tests/test.env.py,SimulationTest,test_reset,#SimulationTest#,6

Before Change


        observation = env.reset(difficulty=2, seed=3)
        observation = env.reset(difficulty=2, seed=3)
        observation = env.reset(difficulty=2, seed=3)
        observation = env.reset(difficulty=2, seed=123)
        env2 = env.env_desc

        s = map(lambda x: x[0] - x[1], list(zip(env1["obstacles"][1],env2["obstacles"][1])))
        self.assertAlmostEqual(sum([k**2 for k in s]), 0.0)

After Change


class SimulationTest(unittest.TestCase):
    def test_reset(self):
        env = L2RunEnv(visualize=False)
        for i in range(10):
            observation = env.reset()

        action = env.action_space.sample()
        action[5] = np.NaN
        self.assertRaises(ValueError, env.step, action)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: stanfordnmbl/osim-rl
Commit Name: 8eb09c72d4df0ca06aa3090afe35ed1d9891fccb
Time: 2018-03-25
Author: lukasz.kidzinski@gmail.com
File Name: tests/test.env.py
Class Name: SimulationTest
Method Name: test_reset


Project Name: pytorch/ignite
Commit Name: 4adc11552a1f14ccfa61f26c8a0924c693a6f850
Time: 2021-04-01
Author: ahmedkhaled19701@gmail.com
File Name: tests/ignite/metrics/test_mean_absolute_error.py
Class Name:
Method Name: test_compute


Project Name: pytorch/ignite
Commit Name: d658c8b1a2627beb7f9cc6e84b3bdcf227fc3b6d
Time: 2021-04-07
Author: ahmedkhaled19701@gmail.com
File Name: tests/ignite/metrics/test_root_mean_squared_error.py
Class Name:
Method Name: test_compute