Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
…4313) Fix #4273. Tests are added in this PR. * Modify `is_key` function to include `keys.push_back("pair_deepmd_index")` Update tests in `test_dplr.py` to include `pair_deepmd_index` command * Add `pair_deepmd_index 0` to various `lammps.fix` commands in the test cases <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced a new key, `pair_deepmd_index`, enhancing the `FixDPLR` class for improved pair validation in simulations. - **Bug Fixes** - Updated error handling to ensure robustness when the new `pair_deepmd_index` is not provided. - **Tests** - Modified test parameters to include `pair_deepmd_index 0`, ensuring compatibility with the new functionality while maintaining existing validations. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information