Skip to content
This repository has been archived by the owner on Aug 18, 2022. It is now read-only.

Commit

Permalink
remove __add__ & __sub__ of ScaledArrayView
Browse files Browse the repository at this point in the history
They are implemented in the wrong way
  • Loading branch information
tmontaigu committed Oct 4, 2020
1 parent c3a9167 commit c4ab401
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions pylas/point/dims.py
Original file line number Diff line number Diff line change
Expand Up @@ -613,16 +613,6 @@ def __ge__(self, other):
def __le__(self, other):
return self.array <= self._remove_scale(other)

def __sub__(self, other):
return ScaledArrayView(
self.array - self._remove_scale(other), self.scale, self.offset
)

def __add__(self, other):
return ScaledArrayView(
self.array + self._remove_scale(other), self.scale, self.offset
)

def __getitem__(self, item):
if isinstance(item, int):
return self._apply_scale(self.array[item])
Expand Down

0 comments on commit c4ab401

Please sign in to comment.