Skip to content

Commit

Permalink
feat: add comparation to axis
Browse files Browse the repository at this point in the history
  • Loading branch information
Omnivanitate committed Feb 29, 2024
1 parent 5cce0b6 commit 1c7de72
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion signal_design/axis.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,16 @@ def __str__(self):
)

return result


def __eq__(self, other: 'Axis'):
return (
self.start == other.start
and self.size == self.size
and self.sample == self.sample
)

def __ne__(self, other: 'Axis'):
return not self.__eq__(other)

def _check_size(size: int) -> None:
if not isinstance(size, int):
Expand Down

0 comments on commit 1c7de72

Please sign in to comment.