Commit 2bc24c08 authored by Mario Teixeira Parente's avatar Mario Teixeira Parente
Browse files

Merge remote-tracking branch 'base/main' into main

parents 9c183c63 2d2f37fb
......@@ -17,7 +17,7 @@ def get_filenames(regex: str) -> list[str]:
return sorted(glob.glob(regex))
def make_dirs_of_not_exist(directory_name: str) -> None:
def make_dirs_if_not_exist(directory_name: str) -> None:
if not os.path.exists(directory_name):
os.makedirs(directory_name)
......
......@@ -2,7 +2,7 @@ from __future__ import annotations
from lib.general.benchmarking import Benchmark, CostMeasure, CostMeasureByMetric
from lib.general.utils import get_filenames, normalized_linear_interpolator, \
make_dirs_of_not_exist
make_dirs_if_not_exist
from lib.tas.benchmarking import AngleMap, AngleMapInducedMetric, \
BenefitMeasureApproximationErrorByNorm, CostMeasureCountingTime, \
NormWeightedByTruncatedIntensityFunction, TASExperiment, TASTestCase
......@@ -25,14 +25,14 @@ folder_approach = approach.name
folder_approach_id = f"{approach.id:03}"
folder_test_cases = "tas/test_cases"
make_dirs_of_not_exist(folder_test_cases)
make_dirs_if_not_exist(folder_test_cases)
folder_experiments = f"tas/experiments/{folder_approach}/{folder_approach_id}"
make_dirs_of_not_exist(folder_experiments)
make_dirs_if_not_exist(folder_experiments)
folder_results_base = f"tas/results"
folder_results = f"{folder_results_base}/{folder_approach}"
make_dirs_of_not_exist(folder_results)
make_dirs_if_not_exist(folder_results)
filename_result = f"{folder_results}/result_{folder_approach_id}.csv"
##
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment