# pv.Current_Label                    = 'He1_5016A'
# pv.Current_Ion                      = 'He1'
# pv.Current_TheoLoc                  = 5016.0
# pv.Current_Label                  = 'O3_5007A'
# pv.Current_Ion                    = '[OIII]'
# pv.Current_TheoLoc                = 5006.843
# pv.Current_Label                    = 'O2_7319A'
# pv.Current_Ion                      = '[OII]'
# pv.Current_TheoLoc                  = 7319.000
# 
# pv.Current_Label                    = 'O2_7330A'
# pv.Current_Ion                      = '[OII]'
# pv.Current_TheoLoc                  = 7330.000

pv.Fitting_dict['Wide component']   = False
pv.save_to_file_check               = False
pv.Current_LinesLog                 = '/home/vital/Dropbox/Astrophysics/Data/WHT_Catalogue_SulfurRegression/Objects/SHOC579/' +  CodeName + '_WHT_LinesLog_v3.txt'

pv.Selections = pv.RangesR(Selections, pv.Current_TheoLoc, pv.Current_LinesLog)
print 'The selections', pv.Selections

pv.Selections = [6497.6857399999999, 6524.8928889999997, 6541.0, 6593.0, 6593.1912490000004, 6616.0508639999998]                             

pv.PlottingInLineMeasuring(store_data = False)

print pv.Fitting_dict['blended number']
for i in range(pv.Fitting_dict['blended number']):
    index = str(i)  
    print index, pv.Fitting_dict['A'     + index].nominal_value
    print index, pv.Fitting_dict['mu'    + index].nominal_value
    print index, pv.Fitting_dict['sigma' + index].nominal_value