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 Aug 8, 2024
1 parent b0f80dc commit 2a4194f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion grits/coarsegrain.py
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,11 @@ def save(self, cg_gsdfile, start=0, stop=None, stride=1):
]

# do the force calculation here
traj_lj_forces.append(np.add.reduce(s.log['particles/md/pair/LJ/forces'][inds]))
traj_lj_forces.append(
np.add.reduce(
s.log["particles/md/pair/LJ/forces"][inds]
)
)
# do the velocity calculation here
velocity += [
np.mean(s.particles.velocity[x], axis=0) for x in inds
Expand Down

0 comments on commit 2a4194f

Please sign in to comment.