From e755095a5d32688e28edf708aa6fc77e0b978896 Mon Sep 17 00:00:00 2001
From: dongjiao_joan <dongjiao@kylinos.cn>
Date: Wed, 24 Jul 2024 16:04:49 +0800
Subject: [PATCH] fix skopt.Optimizer incompatible with numpy 1.24

---
 analysis/optimizer/optimizer.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/analysis/optimizer/optimizer.py b/analysis/optimizer/optimizer.py
index 4afa8e4..4c5f6b7 100755
--- a/analysis/optimizer/optimizer.py
+++ b/analysis/optimizer/optimizer.py
@@ -36,6 +36,8 @@ from analysis.optimizer.variance_reduction_feature_selector import VarianceReduc
 
 LOGGER = logging.getLogger(__name__)
 
+# skopt.Optimizer incompatible with numpy >=1.24 ,avoid error : use int replace np.int
+np.int = int
 
 class Optimizer(multiprocessing.Process):
     """find optimal settings and generate optimized profile"""
-- 
2.43.0

