Skip to content

Commit

Permalink
Merge branch 'inprogress'
Browse files Browse the repository at this point in the history
  • Loading branch information
sliakat committed Nov 17, 2023
2 parents 63e4ed2 + 6a48c8d commit 8e91c6f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions read_spe.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,16 @@ def ybin(self) -> int:
@ybin.setter
def ybin(self, val: int):
self._ybin = val
def __eq__(self, compare_to: type['_ROI']) -> bool:
if self.x == compare_to.x and\
self.y == compare_to.y and\
self.width == compare_to.width and\
self.height == compare_to.height and\
self.xbin == compare_to.xbin and\
self.ybin == compare_to.ybin:
return True
else:
return False

#metadata objects
class Metadata():
Expand Down

0 comments on commit 8e91c6f

Please sign in to comment.