cgeorgiaw HF Staff commited on
Commit
abeb215
·
1 Parent(s): 07b9b1b

trying to read from dataset

Browse files
Files changed (1) hide show
  1. evaluation.py +3 -5
evaluation.py CHANGED
@@ -19,11 +19,9 @@ def evaluate_problem(
19
  problem_type: str, input_file: str
20
  ) -> problems.EvaluationSingleObjective | problems.EvaluationMultiObjective:
21
  with Path(input_file).open("r") as f:
22
- data = f.read()
23
- print(data)
24
- data = data['boundary_json']
25
- print(data)
26
- print("data_length: ", len(data))
27
 
28
  match problem_type:
29
  case "geometrical":
 
19
  problem_type: str, input_file: str
20
  ) -> problems.EvaluationSingleObjective | problems.EvaluationMultiObjective:
21
  with Path(input_file).open("r") as f:
22
+ raw = f.read()
23
+ data_dict = json.loads(raw)
24
+ data = data_dict['boundary_json']
 
 
25
 
26
  match problem_type:
27
  case "geometrical":