Skip to content

Commit

Permalink
fix: dpmodel zbl rcut sel (#4339)
Browse files Browse the repository at this point in the history
<!-- 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>
  • Loading branch information
anyangml and wanghan-iapcm authored Nov 12, 2024
1 parent 3885d63 commit 7416c9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deepmd/dpmodel/model/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ def get_zbl_model(data: dict) -> DPZBLModel:
filepath = data["use_srtab"]
pt_model = PairTabAtomicModel(
filepath,
data["descriptor"]["rcut"],
data["descriptor"]["sel"],
descriptor.get_rcut(),
descriptor.get_sel(),
type_map=data["type_map"],
)

Expand Down

0 comments on commit 7416c9f

Please sign in to comment.