Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion deepmd/dpmodel/infer/deep_eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def model_type(self) -> type["DeepEvalWrapper"]:
return DeepDOS
elif "dipole" in model_output_type:
return DeepDipole
elif "polar" in model_output_type:
elif "polar" in model_output_type or "polarizability" in model_output_type:
return DeepPolar
elif "wfc" in model_output_type:
return DeepWFC
Expand Down
4 changes: 2 additions & 2 deletions deepmd/entrypoints/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1134,7 +1134,7 @@ def test_polar(
atomic=atomic,
must=True,
high_prec=False,
type_sel=dp.get_sel_type(),
# type_sel=dp.get_sel_type(),
Comment thread
anyangml marked this conversation as resolved.
Outdated
)

test_data = data.get_test()
Expand Down Expand Up @@ -1275,7 +1275,7 @@ def test_dipole(
atomic=atomic,
must=True,
high_prec=False,
type_sel=dp.get_sel_type(),
# type_sel=dp.get_sel_type(),
Comment thread
anyangml marked this conversation as resolved.
Outdated
)
test_data = data.get_test()
dipole, numb_test, atype = run_test(dp, test_data, numb_test, data)
Expand Down
2 changes: 1 addition & 1 deletion deepmd/jax/infer/deep_eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def model_type(self) -> type["DeepEvalWrapper"]:
return DeepDOS
elif "dipole" in model_output_type:
return DeepDipole
elif "polar" in model_output_type:
elif "polar" in model_output_type or "polarizability" in model_output_type:
return DeepPolar
elif "wfc" in model_output_type:
return DeepWFC
Expand Down
2 changes: 1 addition & 1 deletion deepmd/pt/infer/deep_eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ def model_type(self) -> type["DeepEvalWrapper"]:
return DeepDOS
elif "dipole" in model_output_type:
return DeepDipole
elif "polar" in model_output_type:
elif "polar" in model_output_type or "polarizability" in model_output_type:
return DeepPolar
elif "global_polar" in model_output_type:
return DeepGlobalPolar
Expand Down
Loading