Skip to content

Commit

Permalink
change sub_var_name default to []
Browse files Browse the repository at this point in the history
  • Loading branch information
Chengqian-Zhang committed Dec 13, 2024
1 parent ac5fa5c commit 69803d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepmd/dpmodel/output_def.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ def __init__(
r_hessian: bool = False,
magnetic: bool = False,
intensive: bool = False,
sub_var_name: list[str] = None,
sub_var_name: list[str] = [],
) -> None:
self.name = name
self.shape = list(shape)
Expand Down

0 comments on commit 69803d6

Please sign in to comment.