Skip to content

Commit

Permalink
delete blank
Browse files Browse the repository at this point in the history
  • Loading branch information
Chengqian-Zhang committed Sep 25, 2023
1 parent d7d7330 commit f08fc20
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion deepmd_pt/utils/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ def single_preprocess(self, batch, sid):
dtype=torch.bool,
device=env.PREPROCESS_DEVICE)
if self.pbc:
_coord = region.move_noised_coord_all_in_box(noised_coord, _clean_coord)
_coord = normalize_coord(noised_coord, region, nloc)
else:
_coord = noised_coord.clone()
try:
Expand Down
2 changes: 1 addition & 1 deletion deepmd_pt/utils/preprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def get_face_distance(self):
"""Return face distinces to each surface of YZ, ZX, XY."""
return torch.stack([self._h2yz, self._h2zx, self._h2xy])


def normalize_coord(coord, region: Region3D, nloc: int):
"""Move outer atoms into region by mirror.
Expand Down

0 comments on commit f08fc20

Please sign in to comment.