From 42dac5ff4f9e4ea83b7e5cbfe9fe3d733e252725 Mon Sep 17 00:00:00 2001 From: kjei Date: Mon, 24 Nov 2025 12:18:06 +0100 Subject: [PATCH] Fix default for use_ensemble option in organize_sparse_representation If use_ensemble == no it should be set to None because of the choices in compress_manager --- pipt/misc_tools/extract_tools.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pipt/misc_tools/extract_tools.py b/pipt/misc_tools/extract_tools.py index 622705d7..c37ac91e 100644 --- a/pipt/misc_tools/extract_tools.py +++ b/pipt/misc_tools/extract_tools.py @@ -296,6 +296,7 @@ def organize_sparse_representation(info: Union[dict,list]) -> dict: sparse['keep_ca'] = info.get('keep_ca', False) sparse['inactive_value'] = info['inactive_value'] sparse['use_ensemble'] = info.get('use_ensemble', None) + if sparse['use_ensemble'] == False: sparse['use_ensemble'] = None return sparse