Skip to content

Commit

Permalink
move hoomd import inside rigid body function (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjonesBSU authored Feb 16, 2024
1 parent 4a627bb commit 6a68c97
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmeutils/gsd_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

import freud
import gsd.hoomd
import hoomd
import networkx as nx
import numpy as np
from boltons.setutils import IndexedSet
Expand Down Expand Up @@ -255,6 +254,8 @@ def update_rigid_snapshot(snapshot, mb_compound):
of the complete system
"""
import hoomd

rigid_ids = [p.rigid_id for p in mb_compound.particles()]
rigid_bodies = set(rigid_ids)
# Total number of rigid body particles
Expand Down

0 comments on commit 6a68c97

Please sign in to comment.