From 5619beec9da1a27870646942f1832b731863bfed Mon Sep 17 00:00:00 2001 From: DONNOT Benjamin Date: Thu, 26 Oct 2023 15:22:21 +0200 Subject: [PATCH] fixing small issues spotted in the PR rte-france#547 --- grid2op/Chronics/gridStateFromFile.py | 2 -- grid2op/multi_agent/my_test.py | 16 ---------------- 2 files changed, 18 deletions(-) delete mode 100644 grid2op/multi_agent/my_test.py diff --git a/grid2op/Chronics/gridStateFromFile.py b/grid2op/Chronics/gridStateFromFile.py index 19c7f3f83..1cc53a725 100644 --- a/grid2op/Chronics/gridStateFromFile.py +++ b/grid2op/Chronics/gridStateFromFile.py @@ -234,8 +234,6 @@ def _assert_correct(self, dict_convert, order_backend): lend_dict_values = len(vals) if len_dict_keys != len_backend: - import pdb - pdb.set_trace() err_msg = "Conversion mismatch between backend data {} elements and converter data {} (keys)" raise IncorrectNumberOfElements(err_msg.format(len_backend, len_dict_keys)) if lend_dict_values != len_backend: diff --git a/grid2op/multi_agent/my_test.py b/grid2op/multi_agent/my_test.py deleted file mode 100644 index 3c48e88ec..000000000 --- a/grid2op/multi_agent/my_test.py +++ /dev/null @@ -1,16 +0,0 @@ -import grid2op -from grid2op.multi_agent.multiAgentEnv import MultiAgentEnv - -env = grid2op.make("l2rpn_case14_sandbox", test = True) -action_domains = { - 'agent_0' : [0,1,2,3, 4], - 'agent_1' : [5,6,7,8,9,10,11,12,13] - } -observation_domains = { - 'agent_0' : action_domains['agent_1'], - 'agent_1' : action_domains['agent_0'] - } - -# run redispatch agent on one scenario for 100 timesteps -ma_env = MultiAgentEnv(env, observation_domains, action_domains) -