diff --git a/src/fastoad/cmd/doe.py b/src/fastoad/cmd/doe.py index 8907fafad..6a7b2a04e 100644 --- a/src/fastoad/cmd/doe.py +++ b/src/fastoad/cmd/doe.py @@ -106,9 +106,6 @@ def _handle_lhs(self, level_count=None): def _handle_full_factorial(self): return samp.FullFactorial(xlimits=self.bounds) - def _handle_random(self): - return samp.Random(xlimits=self.bounds, random_state=self.seed_value) - def _print_sampling_info(self): pass diff --git a/src/fastoad/cmd/tests/test_doe.py b/src/fastoad/cmd/tests/test_doe.py index 1fc22f252..c9436835e 100644 --- a/src/fastoad/cmd/tests/test_doe.py +++ b/src/fastoad/cmd/tests/test_doe.py @@ -138,21 +138,6 @@ def test_generate_doe_full_factorial(cleanup_DOEVariable, cleanup, sample_variab assert all(isinstance(item, VariableList) for item in doe_points) -def test_generate_doe_random(cleanup_DOEVariable, cleanup, sample_variables): - """Test DOEConfig generate_doe for Random method.""" - config = DOEConfig( - sampling_method="Random", - variables=sample_variables, - destination_folder=RESULTS_FOLDER_PATH, - ) - - doe_points = config.generate_doe(sample_count=5) - - # Test that the return type is a list of VariableList instances - assert isinstance(doe_points, list) - assert all(isinstance(item, VariableList) for item in doe_points) - - def test_generate_doe_lhs_level_count(cleanup_DOEVariable, cleanup, sample_variables): """Test DOEConfig generate_doe for LHS method missing level_count.""" config = DOEConfig(