Commit 3701566
authored
fix(dp/pt): support auto sel for dpa2 (#4323)
Fix #4314 .
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
- **New Features**
- Enhanced selection update functionality to accommodate three-body
interactions.
- Expanded argument handling to allow flexible input types for neighbor
selection parameters.
- **Bug Fixes**
- Improved error handling and robustness in the selection update
process.
- **Documentation**
- Updated documentation strings for clarity on new input types and usage
constraints.
- **Tests**
- Added a new test method to validate the functionality of the updated
selection method for the `dpa2` model.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->1 parent 6c66be9 commit 3701566
File tree
4 files changed
+75
-6
lines changed- deepmd
- dpmodel/descriptor
- pt/model/descriptor
- utils
- source/tests/pt
4 files changed
+75
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1057 | 1057 | | |
1058 | 1058 | | |
1059 | 1059 | | |
| 1060 | + | |
| 1061 | + | |
| 1062 | + | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
1060 | 1068 | | |
1061 | 1069 | | |
1062 | 1070 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
842 | 842 | | |
843 | 843 | | |
844 | 844 | | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
845 | 853 | | |
846 | 854 | | |
847 | 855 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
940 | 940 | | |
941 | 941 | | |
942 | 942 | | |
943 | | - | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
944 | 946 | | |
945 | 947 | | |
946 | 948 | | |
| |||
972 | 974 | | |
973 | 975 | | |
974 | 976 | | |
975 | | - | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
976 | 980 | | |
977 | 981 | | |
978 | 982 | | |
979 | 983 | | |
980 | 984 | | |
981 | 985 | | |
982 | 986 | | |
983 | | - | |
| 987 | + | |
984 | 988 | | |
985 | 989 | | |
986 | 990 | | |
| |||
1066 | 1070 | | |
1067 | 1071 | | |
1068 | 1072 | | |
1069 | | - | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
1070 | 1078 | | |
1071 | 1079 | | |
1072 | 1080 | | |
| |||
1076 | 1084 | | |
1077 | 1085 | | |
1078 | 1086 | | |
1079 | | - | |
| 1087 | + | |
| 1088 | + | |
| 1089 | + | |
1080 | 1090 | | |
1081 | 1091 | | |
1082 | 1092 | | |
| |||
1139 | 1149 | | |
1140 | 1150 | | |
1141 | 1151 | | |
1142 | | - | |
| 1152 | + | |
1143 | 1153 | | |
1144 | 1154 | | |
1145 | 1155 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
173 | 216 | | |
174 | 217 | | |
175 | 218 | | |
| |||
0 commit comments