Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 19, 2025
1 parent 69d578b commit 30b454d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions deepmd/utils/neighbor_stat.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,12 @@ def get_stat(self, data: DeepmdDataSystem) -> tuple[float, np.ndarray]:

# do sqrt in the final
min_nbor_dist = math.sqrt(min_nbor_dist)
log.info(f"Neighbor statistics: training data with minimal neighbor distance: {min_nbor_dist:f}")
log.info(f"Neighbor statistics: training data with maximum neighbor size: {str(max_nbor_size)} (cutoff radius: {self.rcut:f})")
log.info(
f"Neighbor statistics: training data with minimal neighbor distance: {min_nbor_dist:f}"
)
log.info(
f"Neighbor statistics: training data with maximum neighbor size: {max_nbor_size!s} (cutoff radius: {self.rcut:f})"
)
return min_nbor_dist, max_nbor_size

@abstractmethod
Expand Down

0 comments on commit 30b454d

Please sign in to comment.