|
13 | 13 |
|
14 | 14 | from ceasiompy.utils.decorators import log_test
|
15 | 15 | 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 |
18 | 17 |
|
19 | 18 | from unittest import main
|
20 | 19 | from ceasiompy.utils.ceasiompytest import CeasiompyTest
|
|
24 | 23 | # =================================================================================================
|
25 | 24 |
|
26 | 25 |
|
27 |
| -class TestCreateData(CeasiompyTest): |
| 26 | +class TestConfig(CeasiompyTest): |
28 | 27 |
|
29 | 28 | @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( |
35 | 31 | 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", |
47 | 33 | objective="cl",
|
48 | 34 | )
|
| 35 | + print(output) |
49 | 36 |
|
50 | 37 |
|
51 | 38 | # =================================================================================================
|
|
0 commit comments