original_docstring: Match the input spectrum to the CIE CMF table with lambda from 3900 Angstrom to 8300 Angstrom, in steps of 1 Angstrom,
      if the input spectrum is not in that shape
      
docstring: Match the input spectrum to the CIE CMF table with lambda from 3900 Angstrom to 8300 Angstrom, in steps of 1 Angstrom,
  if the input spectrum is not in that shape
docstring_tokens: Match the input spectrum to the CIE CMF table with lambda from 3900 Angstrom to 8300 Angstrom in steps of 1 Angstrom if the input spectrum is not in that shape
code: def shape_spectrum(twod_spec):
      """Match the input spectrum to the CIE CMF table with lambda from 3900 Angstrom to 8300 Angstrom, in steps of 1 Angstrom,
      if the input spectrum is not in that shape
      """
      indices = []
      spec_result = []
      wl_range = np.arange(3900, 8301, 1) #reference to how it needs to be
      comparison = np.intersect1d(twod_spec[0], wl_range, return_indices=True) #check where the arrays are the same
      indices.append(comparison[1]) #extract the indices
      spec_result = twod_spec[1][indices[0]] #resulting spectrum value, without the wavelength values
      return np.array(spec_result)
code_tokens: def shape_spectrum ( twod_spec ) : indices = [ ] spec_result = [ ] wl_range = np . arange ( 3900 , 8301 , 1 ) comparison = np . intersect1d ( twod_spec [ 0 ] , wl_range , return_indices = True ) indices . append ( comparison [ 1 ] ) spec_result = twod_spec [ 1 ] [ indices [ 0 ] ] return np . array ( spec_result )
short_docstring: Match the input spectrum to the CIE CMF table with lambda from 3900 Angstrom to 8300 Angstrom, in steps of 1 Angstrom,
  if the input spectrum is not in that shape
short_docstring_tokens: Match the input spectrum to the CIE CMF table with lambda from 3900 Angstrom to 8300 Angstrom in steps of 1 Angstrom if the input spectrum is not in that shape
comment: """Match the input spectrum to the CIE CMF table with lambda from 3900 Angstrom to 8300 Angstrom, in steps of 1 Angstrom,
      if the input spectrum is not in that shape
      """$SEP$#reference to how it needs to be
  $SEP$#check where the arrays are the same
  $SEP$#extract the indices
  $SEP$#resulting spectrum value, without the wavelength values
  