From 6fa965fdfbfa6d23a0ae98b4ed578c3c4164605b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Lafage?= Date: Mon, 9 Oct 2023 15:01:48 +0200 Subject: [PATCH] Fix for expired deprecation in numpy 1.25 (#469) --- smt/applications/tests/test_ego.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smt/applications/tests/test_ego.py b/smt/applications/tests/test_ego.py index 8567edfd7..2622989a1 100644 --- a/smt/applications/tests/test_ego.py +++ b/smt/applications/tests/test_ego.py @@ -854,7 +854,7 @@ def _evaluate(self, x, kx): assert kx is None response = self.super._evaluate(x, kx) sens = np.hstack( - self.super._evaluate(x, ki) for ki in range(x.shape[1]) + [self.super._evaluate(x, ki) for ki in range(x.shape[1])] ) return np.hstack((response, sens))