Skip to content

Commit

Permalink
Fix equality for array coordinates
Browse files Browse the repository at this point in the history
  • Loading branch information
eteq authored and ktchrn committed Oct 28, 2014
1 parent 7ed6c08 commit 98da0e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions astropy/coordinates/coordsystems.py
Expand Up @@ -49,9 +49,9 @@ def __init__(self, *args, **kwargs):

def __eq__(self, other):
try:
return (self.latangle == other.latangle and
self.lonangle == other.lonangle and
self.distance == other.distance and
return (np.all(self.latangle == other.latangle) and
np.all(self.lonangle == other.lonangle) and
np.all(self.distance == other.distance) and
self.equinox == other.equinox)
except AttributeError:
return False
Expand Down

0 comments on commit 98da0e6

Please sign in to comment.