Skip to content

Commit

Permalink
[r2] fix NeighborStat (#207)
Browse files Browse the repository at this point in the history
* fix NeighborStat

Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>

* mixed_type

Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>

---------

Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
  • Loading branch information
njzjz committed Apr 6, 2024
1 parent 28c144a commit f8a0b31
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion deepmd/utils/neighbor_stat.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,9 @@ def __init__(
one_type: bool = False,
) -> None:
"""Constructor."""
super().__init__(ntypes, rcut, one_type)
self.ntypes = ntypes
self.rcut = rcut
self.mixed_type = one_type
self.auto_batch_size = AutoBatchSize()
self.neighbor_stat = NeighborStatOP(ntypes, rcut, not one_type)
self.place_holders = {}
Expand Down

0 comments on commit f8a0b31

Please sign in to comment.