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 25, 2023
1 parent 2204a6d commit c5b9191
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion grits/tests/test_coarsegrain.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ def test_anisobenzene(self, tmp_path):
gsdfile,
beads={"_B": "c1ccccc1"},
conversion_dict=amber_dict,
aniso_beads=True
aniso_beads=True,
)
assert isinstance(system.mapping, dict)
assert len(system.mapping["_B...c1ccccc1"]) == 20
Expand Down
1 change: 1 addition & 0 deletions grits/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ def get_com(particle_positions, particle_masses):
center_of_mass = np.sum(weighted_positions / M, axis=0)
return center_of_mass


def get_quaternion(n1, n0=np.array([0, 0, 1])):
"""Calculates axis and angle of rotation given
two planes normal vectors, which is then used
Expand Down

0 comments on commit c5b9191

Please sign in to comment.