Skip to content

Commit

Permalink
check anisous before concat
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmkrieger committed Nov 3, 2023
1 parent 68479a0 commit de369b1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion prody/atomic/atomgroup.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,8 @@ def __add__(self, other):
if self._n_csets:
if self._n_csets == other._n_csets:
new.setCoords(np.concatenate((self._coords, other._coords), 1))
new.setAnisous(np.concatenate((self._anisous, other._anisous), 1))
if self._anisous is not None and other._anisous is not None:
new.setAnisous(np.concatenate((self._anisous, other._anisous), 1))
if self._n_csets > 1:
LOGGER.info('All {0} coordinate sets are copied to '
'{1}.'.format(self._n_csets, new.getTitle()))
Expand Down

0 comments on commit de369b1

Please sign in to comment.