abdev-leaderboard / evaluation.py
pquintero's picture
precommit
8f9985e
raw
history blame
985 Bytes
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