Skip to content

Commit

Permalink
upd scene frame __eq__
Browse files Browse the repository at this point in the history
  • Loading branch information
miili committed Jan 15, 2018
1 parent f6e9816 commit a58ebbf
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/scene.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,15 @@ def mapENMatrix(self, E, N):
col = int(N/self.dN) if N > 0 else 0
return row, col


def __eq__(self, other):
return self.llLat == other.llLat and\
self.llLon == other.llLon and\
self.dE == other.dE and\
self.dN == other.dN and\
self.rows == other.rows and\
self.cols == other.cols

def __str__(self):
return (
'Lower right latitude: {frame.llLat:.4f} N\n'
Expand Down

0 comments on commit a58ebbf

Please sign in to comment.