From b3d65a8b9f256d65708ebf3ce2019842985a0a51 Mon Sep 17 00:00:00 2001 From: p57492168 <2577192526@qq.com> Date: Thu, 23 Jun 2022 14:18:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Palette/env/sea_env.py | 2 +- Palette/examples/charge_multi_split_wildfire_greedy.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Palette/env/sea_env.py b/Palette/env/sea_env.py index aa8b578..57f0fc7 100644 --- a/Palette/env/sea_env.py +++ b/Palette/env/sea_env.py @@ -160,5 +160,5 @@ if __name__ == '__main__': if t: break - + print(steps) diff --git a/Palette/examples/charge_multi_split_wildfire_greedy.py b/Palette/examples/charge_multi_split_wildfire_greedy.py index 6eb0f2c..4d94c04 100644 --- a/Palette/examples/charge_multi_split_wildfire_greedy.py +++ b/Palette/examples/charge_multi_split_wildfire_greedy.py @@ -17,7 +17,6 @@ def generate_agent_fields(fields, ship_num, splited_areas): for _ in range(ship_num)], axis=0) for ship_id in range(1, ship_num+1): cur_fields = agents_fields[ship_id-1] - # print((splited_areas != ship_id) * (splited_areas != -1)) cur_fields[(splited_areas != ship_id) * (splited_areas != -1)] += 1 return agents_fields