Loading autocnet/transformation/roi.py +2 −6 Original line number Diff line number Diff line Loading @@ -70,10 +70,6 @@ class Roi(): self.affine = affine self._clipped_array = None @property def clipped_array(self): return self._clipped_array @property def center(self): return (self.x, self.y) Loading Loading @@ -179,14 +175,14 @@ class Roi(): present. """ if self.ndv == None: return True return if len(self._clipped_array) == 0: return False # Check if we have any ndv values this will return an inverted array # where all no data values are true, we need to then invert the array # and return the all result. This ensures that a valid array will return # True return np.invert(np.isclose(self.ndv, self._clipped_array)).all() return np.invert(np.isclose(self.ndv, self.clipped_array)).all() @property Loading Loading
autocnet/transformation/roi.py +2 −6 Original line number Diff line number Diff line Loading @@ -70,10 +70,6 @@ class Roi(): self.affine = affine self._clipped_array = None @property def clipped_array(self): return self._clipped_array @property def center(self): return (self.x, self.y) Loading Loading @@ -179,14 +175,14 @@ class Roi(): present. """ if self.ndv == None: return True return if len(self._clipped_array) == 0: return False # Check if we have any ndv values this will return an inverted array # where all no data values are true, we need to then invert the array # and return the all result. This ensures that a valid array will return # True return np.invert(np.isclose(self.ndv, self._clipped_array)).all() return np.invert(np.isclose(self.ndv, self.clipped_array)).all() @property Loading