Skip to content

Commit 188f226

Browse files
committed
remove launch_avl tests
1 parent c64ef85 commit 188f226

File tree

1 file changed

+6
-19
lines changed

1 file changed

+6
-19
lines changed

ceasiompy/SMTrain/tests/test_create_data.py renamed to ceasiompy/SMTrain/tests/test_config.py

+6-19
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313

1414
from ceasiompy.utils.decorators import log_test
1515
from ceasiompy.utils.ceasiompyutils import current_workflow_dir
16-
from ceasiompy.SMTrain.func.sampling import lh_sampling
17-
from ceasiompy.SMTrain.func.createdata import launch_avl
16+
from ceasiompy.SMTrain.func.createdata import retrieve_aeromap_data
1817

1918
from unittest import main
2019
from ceasiompy.utils.ceasiompytest import CeasiompyTest
@@ -24,28 +23,16 @@
2423
# =================================================================================================
2524

2625

27-
class TestCreateData(CeasiompyTest):
26+
class TestConfig(CeasiompyTest):
2827

2928
@log_test
30-
def test_launch_avl(self) -> None:
31-
MAX_ALT = 1000.0
32-
MAX_MACH = 0.3
33-
MAX_AOA = MAX_AOS = 15.0
34-
launch_avl(
29+
def test_retrieve_aeromap_data(self) -> None:
30+
output = retrieve_aeromap_data(
3531
cpacs=self.test_cpacs,
36-
lh_sampling_path=lh_sampling(
37-
n_samples=2, # Run AVL at least once
38-
ranges={
39-
"altitude": [0, MAX_ALT],
40-
"machNumber": [0.1, MAX_MACH],
41-
"angleOfAttack": [0, MAX_AOA],
42-
"angleOfSideslip": [0, MAX_AOS],
43-
},
44-
results_dir=current_workflow_dir(), # Where to store AVL results
45-
random_state=42,
46-
),
32+
aeromap_uid="aeromap_empty",
4733
objective="cl",
4834
)
35+
print(output)
4936

5037

5138
# =================================================================================================

0 commit comments

Comments
 (0)