code: def extract_spectra_from_file(
          log,
          pathToSpectrum,
          convertLumToFlux=False):
      
      ################ > IMPORTS ################
      ## STANDARD LIB ##
      import os
      ## THIRD PARTY ##
      import numpy as np
      ## LOCAL APPLICATION ##
      import dryxPython.astrotools as at
  
      ################ > VARIABLE SETTINGS ######
      ################ >ACTION(S) ################
      # USE numPy TO EXTRACT THE DATA FROM FILE
      pwd = os.getcwd()
      log.debug('pwd %s' % (pwd,))
      log.debug('pathToSpectrum %s' % (pathToSpectrum,))
      data = np.genfromtxt(pathToSpectrum, skip_header=0, usecols=(0, 1))
      wavelengthArray = data[:, 0]
      # minWl = wavelengthArray.min()
      # maxWl = wavelengthArray.max()
      luminosityArray = data[:, 1]
      # CONVERT TO FLUX:  F = L / 4*pi*(r**2)
      if convertLumToFlux:
          fluxArray = at.luminosity_to_flux(luminosityArray, 1e-5)
      else:
          fluxArray = luminosityArray
  
      # DEBUG BLOCK
      log.debug('pathToSpectrum: %s' % (pathToSpectrum,))
      # for i in range(len(fluxArray)):
      #     print """%s\t%s\t%s""" % (wavelengthArray[i], luminosityArray[i], fluxArray[i] )
      # print "\n\n\n"
      return wavelengthArray, fluxArray
docs: *Given a spectrum file this function shall convert the two columns (wavelength and luminosity) to a wavelegnth (wavelengthArray) and flux (fluxArray) array*
  
      **Key Arguments:**
          - ``log`` -- logger
          - ``pathToSpectrum`` -- absolute path the the spectrum file
  
      **Return:**
          - None