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

fix typo

parent 01e70e16
...@@ -17,7 +17,7 @@ def get_filenames(regex: str) -> list[str]: ...@@ -17,7 +17,7 @@ def get_filenames(regex: str) -> list[str]:
return sorted(glob.glob(regex)) 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): if not os.path.exists(directory_name):
os.makedirs(directory_name) os.makedirs(directory_name)
......
...@@ -2,7 +2,7 @@ from __future__ import annotations ...@@ -2,7 +2,7 @@ from __future__ import annotations
from lib.general.benchmarking import Benchmark, CostMeasure, CostMeasureByMetric from lib.general.benchmarking import Benchmark, CostMeasure, CostMeasureByMetric
from lib.general.utils import get_filenames, normalized_linear_interpolator, \ 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, \ from lib.tas.benchmarking import AngleMap, AngleMapInducedMetric, \
BenefitMeasureApproximationErrorByNorm, CostMeasureCountingTime, \ BenefitMeasureApproximationErrorByNorm, CostMeasureCountingTime, \
NormWeightedByTruncatedIntensityFunction, TASExperiment, TASTestCase NormWeightedByTruncatedIntensityFunction, TASExperiment, TASTestCase
...@@ -24,14 +24,14 @@ folder_approach = approach.name ...@@ -24,14 +24,14 @@ folder_approach = approach.name
folder_approach_id = f"{approach.id:03}" folder_approach_id = f"{approach.id:03}"
folder_test_cases = "tas/test_cases" 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}" 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_base = f"tas/results"
folder_results = f"{folder_results_base}/{folder_approach}" 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" 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