Skip to content

Commit a5cb130

Browse files
authored
Merge pull request #547 from amcadmus/devel
fix bug of using old name se_a, changed to se_e2_a
2 parents 6f5e4c1 + a5a31a6 commit a5cb130

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

deepmd/train/trainer.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -113,22 +113,22 @@ def _init_param(self, jdata):
113113
# elif fitting_type == 'wfc':
114114
# self.fitting = WFCFitting(fitting_param, self.descrpt)
115115
elif fitting_type == 'dipole':
116-
if descrpt_type == 'se_a':
116+
if descrpt_type == 'se_e2_a':
117117
self.fitting = DipoleFittingSeA(**fitting_param)
118118
else :
119-
raise RuntimeError('fitting dipole only supports descrptors: se_a')
119+
raise RuntimeError('fitting dipole only supports descrptors: se_e2_a')
120120
elif fitting_type == 'polar':
121121
# if descrpt_type == 'loc_frame':
122122
# self.fitting = PolarFittingLocFrame(fitting_param, self.descrpt)
123-
if descrpt_type == 'se_a':
123+
if descrpt_type == 'se_e2_a':
124124
self.fitting = PolarFittingSeA(**fitting_param)
125125
else :
126-
raise RuntimeError('fitting polar only supports descrptors: loc_frame and se_a')
126+
raise RuntimeError('fitting polar only supports descrptors: loc_frame and se_e2_a')
127127
elif fitting_type == 'global_polar':
128-
if descrpt_type == 'se_a':
128+
if descrpt_type == 'se_e2_a':
129129
self.fitting = GlobalPolarFittingSeA(**fitting_param)
130130
else :
131-
raise RuntimeError('fitting global_polar only supports descrptors: loc_frame and se_a')
131+
raise RuntimeError('fitting global_polar only supports descrptors: loc_frame and se_e2_a')
132132
else :
133133
raise RuntimeError('unknow fitting type ' + fitting_type)
134134

source/tests/data_modifier/dipole.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"model":{
55
"type_map": ["O", "H"],
66
"descriptor" :{
7-
"type": "se_a",
7+
"type": "se_e2_a",
88
"sel": [46, 92],
99
"rcut_smth": 3.80,
1010
"rcut": 4.00,

source/tests/test_data_modifier_shuffle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def _setUp_jdata(self):
134134
"model":{
135135
"type_map": ["A", "B", "C", "D", "E"],
136136
"descriptor" :{
137-
"type": "se_a",
137+
"type": "se_e2_a",
138138
"sel": [50, 50, 50, 50, 50],
139139
"rcut_smth": 3.80,
140140
"rcut": 4.00,

0 commit comments

Comments
 (0)