Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
AINX
base-ariane-fork
Commits
2d2f37fb
Commit
2d2f37fb
authored
Mar 28, 2022
by
Mario Teixeira Parente
Browse files
fix typo
parent
01e70e16
Changes
2
Hide whitespace changes
Inline
Side-by-side
lib/general/utils.py
View file @
2d2f37fb
...
...
@@ -17,7 +17,7 @@ def get_filenames(regex: str) -> list[str]:
return
sorted
(
glob
.
glob
(
regex
))
def
make_dirs_
o
f_not_exist
(
directory_name
:
str
)
->
None
:
def
make_dirs_
i
f_not_exist
(
directory_name
:
str
)
->
None
:
if
not
os
.
path
.
exists
(
directory_name
):
os
.
makedirs
(
directory_name
)
...
...
tas/setting.py
View file @
2d2f37fb
...
...
@@ -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_
o
f_not_exist
make_dirs_
i
f_not_exist
from
lib.tas.benchmarking
import
AngleMap
,
AngleMapInducedMetric
,
\
BenefitMeasureApproximationErrorByNorm
,
CostMeasureCountingTime
,
\
NormWeightedByTruncatedIntensityFunction
,
TASExperiment
,
TASTestCase
...
...
@@ -24,14 +24,14 @@ folder_approach = approach.name
folder_approach_id
=
f
"
{
approach
.
id
:
03
}
"
folder_test_cases
=
"tas/test_cases"
make_dirs_
o
f_not_exist
(
folder_test_cases
)
make_dirs_
i
f_not_exist
(
folder_test_cases
)
folder_experiments
=
f
"tas/experiments/
{
folder_approach
}
/
{
folder_approach_id
}
"
make_dirs_
o
f_not_exist
(
folder_experiments
)
make_dirs_
i
f_not_exist
(
folder_experiments
)
folder_results_base
=
f
"tas/results"
folder_results
=
f
"
{
folder_results_base
}
/
{
folder_approach
}
"
make_dirs_
o
f_not_exist
(
folder_results
)
make_dirs_
i
f_not_exist
(
folder_results
)
filename_result
=
f
"
{
folder_results
}
/result_
{
folder_approach_id
}
.csv"
##
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment