parameters: (self, spectra)
docstring: Checks that in input spectra are all in the forward or all in the backward
          scattering range
          Assumes that the spectra is sorted sorted
docstring_summary: Checks that in input spectra are all in the forward or all in the backward
          scattering range
          Assumes that the spectra is sorted sorted
docstring_tokens: Checks that in input spectra are all in the forward or all in the backward scattering range Assumes that the spectra is sorted sorted
function: def _raise_error_if_mix_fwd_back(self, spectra):
          """
          Checks that in input spectra are all in the forward or all in the backward
          scattering range
          Assumes that the spectra is sorted sorted
          """
          if len(spectra) == 1:
              self._back_scattering = self._is_back_scattering(spectra[0])
              return
          all_back = self._is_back_scattering(spectra[0])
          for spec_no in spectra[1:]:
              if all_back and self._is_fwd_scattering(spec_no):
                  raise RuntimeError("Mixing backward and forward spectra is not permitted. "
                                     "Please correct the SpectrumList property.")
          self._back_scattering = all_back
function_tokens: def _raise_error_if_mix_fwd_back ( self , spectra ) : if len ( spectra ) == 1 : self . _back_scattering = self . _is_back_scattering ( spectra [ 0 ] ) return all_back = self . _is_back_scattering ( spectra [ 0 ] ) for spec_no in spectra [ 1 : ] : if all_back and self . _is_fwd_scattering ( spec_no ) : raise RuntimeError ( "Mixing backward and forward spectra is not permitted. " "Please correct the SpectrumList property." ) self . _back_scattering = all_back