Commit 45de5b08 authored by Kelvin Rodriguez's avatar Kelvin Rodriguez
Browse files

addressed comments

parent d8ec5ee4
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -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)
@@ -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