MCPcopy Create free account
hub / github.com/ahalev/python-microgrid / test_state_series_values_normalized

Method test_state_series_values_normalized

tests/envs/test_base.py:82–86  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

80
81 @pass_if_parent
82 def test_state_series_values_normalized(self):
83 env = deepcopy(self.env)
84
85 expected_state_series = np.array([1/6., 0., 1., 1., 1., 0., 0., 0.5, 0.5, 0., 0., 0., 0.])
86 self.assertEqual(env.state_series(normalized=True).values, expected_state_series)
87
88 @pass_if_parent
89 def test_get_obs(self):

Callers

nothing calls this directly

Calls 2

assertEqualMethod · 0.80
state_seriesMethod · 0.80

Tested by

no test coverage detected