original_docstring: small function using the functions of the module color_system in order to convert the spectrum to rgb and hex colors
          returns an array with the rgb and hex values
      
docstring: small function using the functions of the module color_system in order to convert the spectrum to rgb and hex colors
  returns an array with the rgb and hex values
docstring_tokens: small function using the functions of the module color_system in order to convert the spectrum to rgb and hex colors returns an array with the rgb and hex values
code: def spec_to_color(spec):
      """small function using the functions of the module color_system in order to convert the spectrum to rgb and hex colors
          returns an array with the rgb and hex values
      """
      spec = shape_spectrum(spec) #bring the input spectrum into the right shape
      rgb = cs_hdtv.spec_to_rgb(spec) #get rgb color values
      hex_ = cs_hdtv.spec_to_rgb(spec, out_fmt='html') #get hex color value
      return np.array([rgb,[hex_,0,0]])
code_tokens: def spec_to_color ( spec ) : spec = shape_spectrum ( spec ) rgb = cs_hdtv . spec_to_rgb ( spec ) hex_ = cs_hdtv . spec_to_rgb ( spec , out_fmt = 'html' ) return np . array ( [ rgb , [ hex_ , 0 , 0 ] ] )
short_docstring: small function using the functions of the module color_system in order to convert the spectrum to rgb and hex colors
  returns an array with the rgb and hex values
short_docstring_tokens: small function using the functions of the module color_system in order to convert the spectrum to rgb and hex colors returns an array with the rgb and hex values
comment: """small function using the functions of the module color_system in order to convert the spectrum to rgb and hex colors
          returns an array with the rgb and hex values
      """$SEP$#bring the input spectrum into the right shape
  $SEP$#get rgb color values
  $SEP$#get hex color value
  