Skip to content

Commit

Permalink
fix anisous shape error
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmkrieger committed Nov 3, 2023
1 parent 6a803ad commit be07b5b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions prody/atomic/atomgroup.py
Original file line number Diff line number Diff line change
Expand Up @@ -604,6 +604,9 @@ def addCoordset(self, coords, label=None, anisous=None):
if coords.ndim == 2:
coords = coords.reshape((1, n_atoms, 3))

if anisous.ndim == 2:
anisous = anisous.reshape((1, n_atoms, 6))

diff = coords.shape[0]
self._coords = np.concatenate((self._coords, coords), axis=0)
if anisous is not None and self._anisous is not None:
Expand Down

0 comments on commit be07b5b

Please sign in to comment.