Skip to content

Commit

Permalink
Update pacmof.py
Browse files Browse the repository at this point in the history
  • Loading branch information
williamyxl authored Sep 11, 2023
1 parent 506c285 commit 494e8d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mofa/simulation/pacmof.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ def get_features_from_cif_serial(path_to_cif):
"""
def find_nearest2(i, atoms):
distances = atoms.get_distances(i, slice(None), mic=True)
indices = np.where(distances < distances[2])[0]
indices = indices[indices != i] # * Remove self
distances = np.sort(distances)
indices = np.where(distances < distances[2])[0]
return indices.tolist(), np.mean(distances[indices])
# * Small Z

Expand Down

0 comments on commit 494e8d9

Please sign in to comment.