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 Dec 6, 2023
1 parent 15989f6 commit ae918a0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion grits/coarsegrain.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def __init__(
mol.write(format="mol2", filename=f.name, overwrite=True)
mol = list(pybel.readfile("mol2", f.name))[0]

mol.OBMol.AddHydrogens()#mol.addh()
mol.OBMol.AddHydrogens() # mol.addh()
n_atoms2 = mol.OBMol.NumAtoms()
print(f"Added {n_atoms2-n_atoms} hydrogens.")

Expand Down
4 changes: 3 additions & 1 deletion grits/tests/test_coarsegrain.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,9 @@ def test_anisorotations(self, tmp_path):
with gsd.hoomd.open(cg_gsd) as f:
frame0 = f[0]
frame1 = f[1]
assert not np.allclose(frame0.particles.orientation, frame1.particles.orientation)
assert not np.allclose(
frame0.particles.orientation, frame1.particles.orientation
)

def test_pps(self, tmp_path):
gsdfile = path.join(asset_dir, "pps-aa.gsd")
Expand Down

0 comments on commit ae918a0

Please sign in to comment.