File size: 1,022 Bytes
192165c
 
 
 
 
1bcb06b
 
 
 
 
 
 
192165c
1bcb06b
8e2e988
1bcb06b
 
 
 
 
 
 
 
 
 
 
 
8e2e988
1bcb06b
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import json
from pathlib import Path

def evaluate_problem(
    problem_type: str, input_file: str
# ) -> problems.EvaluationSingleObjective | problems.EvaluationMultiObjective:
):
    pass
    # with Path(input_file).open("r") as f:
    #     raw = f.read()
    #     data_dict = json.loads(raw)
    #     data = data_dict['boundary_json']

    # print("Starting evaluation.")

    # match problem_type:
    #     case "geometrical":
    #         boundary = load_boundary(data)
    #         result = problems.GeometricalProblem().evaluate(boundary)
    #     case "simple_to_build":
    #         boundary = load_boundary(data)
    #         result = problems.SimpleToBuildQIStellarator().evaluate(boundary)
    #     case "mhd_stable":
    #         boundaries = load_boundaries(data)
    #         result = problems.MHDStableQIStellarator().evaluate(boundaries)
    #     case _:
    #         raise ValueError(f"Unknown problem type: {problem_type}")
        
    # print("Finished evaluation.")
    # return result