Skip to content

Commit

Permalink
fix codeql warning
Browse files Browse the repository at this point in the history
Signed-off-by: Jinzhe Zeng <[email protected]>
  • Loading branch information
njzjz committed Feb 27, 2024
1 parent f1b95e9 commit 3359ea2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepmd/utils/update_sel.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 3359ea2

Please sign in to comment.