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 Feb 19, 2024
1 parent 4bedece commit 347b331
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions flowermd/tests/utils/test_rigid_body.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,9 @@ def test_ellipsoid_create_rigid_body(self):
x = points[:, 0]
y = points[:, 1]
z = points[:, 2]
I_xx = np.sum(
(y**2 + z**2) * system.hoomd_snapshot.particles.mass[:4]
)
I_yy = np.sum(
(x**2 + z**2) * system.hoomd_snapshot.particles.mass[:4]
)
I_zz = np.sum(
(x**2 + y**2) * system.hoomd_snapshot.particles.mass[:4]
)
I_xx = np.sum((y**2 + z**2) * system.hoomd_snapshot.particles.mass[:4])
I_yy = np.sum((x**2 + z**2) * system.hoomd_snapshot.particles.mass[:4])
I_zz = np.sum((x**2 + y**2) * system.hoomd_snapshot.particles.mass[:4])
assert np.all(
np.isclose(
rigid_frame.particles.moment_inertia[0],
Expand Down

0 comments on commit 347b331

Please sign in to comment.