diff --git a/grouping/PPO_cg.py b/grouping/PPO_cg.py index e83e6cb5a4ae12e26fe0dd989b32b5b540951b0c..110af68887074b5ea904c199c0949f37215618b8 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) #here is f.close() no_of_components = data['Number_of_components'] component_index_map={}