Skip to content

Commit

Permalink
Make the error message more informative
Browse files Browse the repository at this point in the history
  • Loading branch information
njzjz authored Feb 29, 2024
1 parent 36b099c commit 18a0938
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepmd/dpmodel/descriptor/hybrid.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def __init__(
for ii in range(1, self.numb_descrpt):
assert (
self.descrpt_list[ii].get_ntypes() == self.descrpt_list[0].get_ntypes()
), f"number of atom types in {ii}th descrptor does not match others"
), f"number of atom types in {ii}th descrptor {self.descrpt_list[0].__class__.__name__} does not match others"
# if hybrid sel is larger than sub sel, the nlist needs to be cut for each type
hybrid_sel = self.get_sel()
self.nlist_cut_idx: List[np.ndarray] = []
Expand Down

0 comments on commit 18a0938

Please sign in to comment.