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 Oct 26, 2023
1 parent cb90cc6 commit c188c93
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions grits/tests/test_coarsegrain.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def test_benzene(self, tmp_path):
gsdfile,
beads={"_B": "c1ccccc1"},
conversion_dict=amber_dict,
mass_scale=12.011
mass_scale=12.011,
)
assert isinstance(system.mapping, dict)
assert len(system.mapping["_B...c1ccccc1"]) == 20
Expand All @@ -208,7 +208,7 @@ def test_benzene(self, tmp_path):
assert len(set(snap.particles.mass)) == 1
assert len(snap.bonds.typeid) == len(snap.bonds.group) == 0
assert len(snap.bonds.types) == 0
assert np.allclose(sum(snap.particles.mass), 20*78.11, atol=1e-1)
assert np.allclose(sum(snap.particles.mass), 20 * 78.11, atol=1e-1)

cg_json = tmp_path / "cg-benzene.json"
system.save_mapping(cg_json)
Expand All @@ -220,7 +220,7 @@ def test_anisobenzene(self, tmp_path):
beads={"_B": "c1ccccc1"},
conversion_dict=amber_dict,
aniso_beads=True,
mass_scale=12.011
mass_scale=12.011,
)
assert isinstance(system.mapping, dict)
assert len(system.mapping["_B...c1ccccc1"]) == 20
Expand All @@ -233,7 +233,7 @@ def test_anisobenzene(self, tmp_path):
assert len(snap.bonds.typeid) == len(snap.bonds.group) == 0
assert len(snap.bonds.types) == 0
assert len(snap.particles.orientation) == 20
assert np.allclose(sum(snap.particles.mass), 20*78.11, atol=1e-1)
assert np.allclose(sum(snap.particles.mass), 20 * 78.11, atol=1e-1)

cg_json = tmp_path / "cg-anisobenzene.json"
system.save_mapping(cg_json)
Expand Down

0 comments on commit c188c93

Please sign in to comment.