Skip to content

Commit

Permalink
fix parameter in cluster module
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjonesBSU committed May 28, 2024
1 parent e32fb61 commit 743ad56
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
11 changes: 8 additions & 3 deletions cmeutils/gsd_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,16 @@ 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]
distances = system.box.compute_distances(
system.points[query_point_indices], system.points[point_indices]
vectors = (
snap.particles.position[query_point_indices]
- snap.particles.position[point_indices]
)
nlist = freud.NeighborList.from_arrays(
n_query_points, n_points, query_point_indices, point_indices, distances
num_query_points=n_query_points,
num_points=n_points,
query_point_indices=query_point_indices,
point_indices=point_indices,
vectors=vectors,
)
cluster = freud.cluster.Cluster()
cluster.compute(system=system, neighbors=nlist)
Expand Down
2 changes: 1 addition & 1 deletion environment-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: cmeutils-dev
channels:
- conda-forge
dependencies:
- freud =2.13.2
- freud >= 3.0
- gmso >=0.11.2
- fresnel >=0.13.5
- gsd >=3.0
Expand Down
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: cmeutils
channels:
- conda-forge
dependencies:
- freud =2.13.2
- freud >= 3.0
- gmso >=0.11.2
- fresnel >=0.13.5
- gsd >=3.0
Expand Down

0 comments on commit 743ad56

Please sign in to comment.