From 00a468161aa6b9c1044fa8afa87b5b881d8af005 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sat, 22 Jun 2024 01:08:49 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- grits/coarsegrain.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/grits/coarsegrain.py b/grits/coarsegrain.py index 7c249e3..bcd691b 100644 --- a/grits/coarsegrain.py +++ b/grits/coarsegrain.py @@ -727,7 +727,7 @@ def save(self, cg_gsdfile, start=0, stop=None, stride=1): new_snap = gsd.hoomd.Frame() position = [] mass = [] - #make an empty list for forces here + # make an empty list for forces here orientation = [] if self.aniso_beads else None f_box = freud.Box.from_box(s.configuration.box) @@ -741,8 +741,8 @@ def save(self, cg_gsdfile, start=0, stop=None, stride=1): sum(s.particles.mass[x]) * self.mass_scale for x in inds ] - #do the force calculation here - + # do the force calculation here + if self.aniso_beads: for x in inds: masses = s.particles.mass[x] * self.mass_scale