trying to read from dataset
Browse files- 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 |
-
|
23 |
-
|
24 |
-
data =
|
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":
|