docs: def check_overlap(self, other):
          """Check overlap with another spectrum.
          Also see :ref:`pysynphot-command-checko`.
  
          This checks whether the wavelength set of the given spectrum
          is defined everywhere within ``self``.
          Wavelength values where throughput is zero are excluded from the check.
          Typical use case is for checking whether a source spectrum
          is fully defined over the range of a bandpass.
          This check is asymmetric in the sense that if ``self`` is fully
          defined within the given spectrum, but not the other way around,
          it will still only return "partial".
          If the given spectrum is analytic, the result is always "full".
  
          Example of full overlap::
  
              |---------- other ----------|
                 |------ self ------|
  
          Examples of partial overlap::
  
              |---------- self ----------|
                 |------ other ------|
  
              |---- other ----|
                 |---- self ----|
  
              |---- self ----|
                 |---- other ----|
  
          Examples of no overlap::
  
              |---- self ----|  |---- other ----|
  
              |---- other ----|  |---- self ----|
  
          Parameters
          ----------
          other : `SourceSpectrum` or `SpectralElement`
              The other spectrum.
  
          Returns
          -------
          ans : {'full', 'partial', 'none'}
              Overlap status.
  
          """
          if other.isAnalytic and not isinstance(other, Box):
              # then it's defined everywhere, except for Box
              return 'full'
  
          swave = self.wave[N.where(self.throughput != 0)]
          s1, s2 = swave.min(), swave.max()
  
          owave = other.wave
          o1, o2 = owave.min(), owave.max()
  
          if (s1 >= o1 and s2 <= o2):
              ans = 'full'
  
          elif (s2 < o1) or (o2 < s1):
              ans = 'none'
  
          else:
              ans = 'partial'
  
          return ans