Skip to content

Commit a58ebbf

Browse files
committed
upd scene frame __eq__
1 parent f6e9816 commit a58ebbf

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/scene.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,15 @@ def mapENMatrix(self, E, N):
277277
col = int(N/self.dN) if N > 0 else 0
278278
return row, col
279279

280+
281+
def __eq__(self, other):
282+
return self.llLat == other.llLat and\
283+
self.llLon == other.llLon and\
284+
self.dE == other.dE and\
285+
self.dN == other.dN and\
286+
self.rows == other.rows and\
287+
self.cols == other.cols
288+
280289
def __str__(self):
281290
return (
282291
'Lower right latitude: {frame.llLat:.4f} N\n'

0 commit comments

Comments
 (0)