From 00db4b14bfde8e2fece37a0e7ece599ffad3d415 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Tue, 27 Jan 2026 12:42:53 +0100 Subject: [PATCH] chore(quickadapter): use np.inf instead of float("inf") MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- quickadapter/user_data/strategies/LabelTransformer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quickadapter/user_data/strategies/LabelTransformer.py b/quickadapter/user_data/strategies/LabelTransformer.py index fc02ee5..11f93b8 100644 --- a/quickadapter/user_data/strategies/LabelTransformer.py +++ b/quickadapter/user_data/strategies/LabelTransformer.py @@ -187,7 +187,7 @@ def get_label_column_config( for pattern, col_config in columns_config.items(): if fnmatch.fnmatch(column_name, pattern): if "*" not in pattern and "?" not in pattern and "[" not in pattern: - specificity = float("inf") + specificity = np.inf else: specificity = float(sum(1 for c in pattern if c not in "*?[]")) matches.append((specificity, pattern, col_config)) -- 2.53.0