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

Method test_state_series_values

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

Source from the content-addressed store, hash-verified

73
74 @pass_if_parent
75 def test_state_series_values(self):
76 env = deepcopy(self.env)
77
78 expected_state_series = np.array([10., -60., 50., 1., 1., 0., 0., 0.5, 50., 1., 1., 1., 1.])
79 self.assertEqual(env.state_series(normalized=False).values, expected_state_series)
80
81 @pass_if_parent
82 def test_state_series_values_normalized(self):

Callers

nothing calls this directly

Calls 2

assertEqualMethod · 0.80
state_seriesMethod · 0.80

Tested by

no test coverage detected