Skip to content

Commit

Permalink
use box module to get vectors
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjonesBSU committed Jun 5, 2024
1 parent 0e1bd67 commit 3f099cc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cmeutils/gsd_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,12 @@ def get_molecule_cluster(gsd_file=None, snap=None, gsd_frame=-1):
n_query_points = n_points = snap.particles.N
query_point_indices = snap.bonds.group[:, 0]
point_indices = snap.bonds.group[:, 1]
vectors = (
box = freud.box.Box(
snap.configuration.box[0],
snap.configuration.box[1],
snap.configuration.box[2],
)
vectors = box.wrap(
snap.particles.position[query_point_indices]
- snap.particles.position[point_indices]
)
Expand Down

0 comments on commit 3f099cc

Please sign in to comment.