From 3359ea2b0f6b2b21e8e8098ec0794ca097e5a96b Mon Sep 17 00:00:00 2001 From: Jinzhe Zeng Date: Tue, 27 Feb 2024 18:29:04 -0500 Subject: [PATCH] fix codeql warning Signed-off-by: Jinzhe Zeng --- deepmd/utils/update_sel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deepmd/utils/update_sel.py b/deepmd/utils/update_sel.py index eb1d000339..d1be8e8138 100644 --- a/deepmd/utils/update_sel.py +++ b/deepmd/utils/update_sel.py @@ -55,7 +55,7 @@ def update_one_sel( " of your model may get worse." % (ii, tt, dd) ) if mixed_type: - descriptor[sel_key] = sel = sum(sel) + descriptor[sel_key] = sum(sel) return descriptor def parse_auto_sel(self, sel):