From 4d2fa2000c70283e3f8f458e88d02d1624378df2 Mon Sep 17 00:00:00 2001 From: OOAmusat <47539353+OOAmusat@users.noreply.github.com> Date: Thu, 7 Sep 2023 15:13:27 -0700 Subject: [PATCH] Fixing random seed for kriging test --- idaes/core/surrogate/pysmo/tests/test_kriging.py | 1 + 1 file changed, 1 insertion(+) diff --git a/idaes/core/surrogate/pysmo/tests/test_kriging.py b/idaes/core/surrogate/pysmo/tests/test_kriging.py index ceb6e5ab0e..c88adac529 100644 --- a/idaes/core/surrogate/pysmo/tests/test_kriging.py +++ b/idaes/core/surrogate/pysmo/tests/test_kriging.py @@ -278,6 +278,7 @@ def test_parameter_optimization_01(self, array_type): input_array = array_type(self.training_data) KrigingClass = KrigingModel(input_array[0:3]) p = 2 + np.random.seed(0) opt_results = KrigingClass.parameter_optimization(p) assert len(opt_results.x) == 3 assert opt_results.success == True