Skip to content

Commit

Permalink
Update util.py
Browse files Browse the repository at this point in the history
  • Loading branch information
AHMED-salah00 committed Apr 11, 2023
1 parent 3aa64d2 commit 19104ab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions package/MDAnalysis/lib/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -2046,15 +2046,15 @@ def check_coords(*coord_names, **options):
... coordsum(u.atoms, u.select_atoms("index 1 to 10"))
... except ValueError as err:
... err
coordsum(): coords1, coords2 must contain the same
number of coordinates, got [3341, 10].
ValueError('coordsum(): coords1, coords2 must contain the same '
'number of coordinates, got [3341, 10].')
>>>
>>> # automatic shape checking:
>>> try:
... coordsum(np.zeros(3), np.ones(6))
... except ValueError as err:
... err
oordsum(): coords2.shape must be (3,) or (n, 3), got (6,)
ValueError('coordsum(): coords2.shape must be (3,) or (n, 3), got (6,)')
.. versionadded:: 0.19.0
Expand Down

0 comments on commit 19104ab

Please sign in to comment.