code: def area(self):
          
  
          if self._is_completely_masked:
              return np.nan * u.pix**2
          else:
              return len(self.values) * u.pix**2
docs: The total unmasked area of the source segment in units of
          pixels**2.
  
          Note that the source area may be smaller than its segment area
          if a mask is input to `SourceProperties` or `source_properties`,
          or if the ``data`` within the segment contains invalid values
          (e.g. NaN or infs).