Skip to content

Commit 7416c9f

Browse files
fix: dpmodel zbl rcut sel (#4339)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Enhanced parameter handling in the model retrieval process for improved efficiency. - Default model type set to "standard" for better robustness when input data is incomplete. - **Bug Fixes** - Improved encapsulation of the descriptor object to prevent potential errors with direct data access. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Co-authored-by: Han Wang <92130845+wanghan-iapcm@users.noreply.github.com>
1 parent 3885d63 commit 7416c9f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

deepmd/dpmodel/model/model.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ def get_zbl_model(data: dict) -> DPZBLModel:
8080
filepath = data["use_srtab"]
8181
pt_model = PairTabAtomicModel(
8282
filepath,
83-
data["descriptor"]["rcut"],
84-
data["descriptor"]["sel"],
83+
descriptor.get_rcut(),
84+
descriptor.get_sel(),
8585
type_map=data["type_map"],
8686
)
8787

0 commit comments

Comments
 (0)