From 8685c1f65c910ebdc5a413ce1276a01dc9c12628 Mon Sep 17 00:00:00 2001 From: Jean-Didier Date: Thu, 13 Apr 2023 15:35:45 +0200 Subject: [PATCH 1/2] bug 348 fix --- grouping/PPO_cg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grouping/PPO_cg.py b/grouping/PPO_cg.py index e83e6cb5..501471d1 100644 --- a/grouping/PPO_cg.py +++ b/grouping/PPO_cg.py @@ -44,7 +44,7 @@ full_filepath = None def set_component_names_from_solutions(filename_, solutions): f = open(filename_, 'r+') - data = json.load(f.read()) + data = json.load(f) f.close() no_of_components = data['Number_of_components'] component_index_map={} -- GitLab From 65986dabfd917dac73172e0d4ca2e8060df50302 Mon Sep 17 00:00:00 2001 From: Jean-Didier Date: Thu, 13 Apr 2023 15:37:39 +0200 Subject: [PATCH 2/2] fix bug fd --- grouping/PPO_cg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grouping/PPO_cg.py b/grouping/PPO_cg.py index 501471d1..110af688 100644 --- a/grouping/PPO_cg.py +++ b/grouping/PPO_cg.py @@ -44,7 +44,7 @@ full_filepath = None def set_component_names_from_solutions(filename_, solutions): f = open(filename_, 'r+') - data = json.load(f) + data = json.load(f) #here is f.close() no_of_components = data['Number_of_components'] component_index_map={} -- GitLab