#Start to loop through recorded line for i in range(len(lick_idcs_df.index)): try: print '-- Treating line:', lick_idcs_df.iloc[i].name #Establish current line dz.Current_Label = lick_idcs_df.iloc[i].name dz.Current_Ion = lick_idcs_df.iloc[i].Ion dz.Current_TheoLoc = lick_idcs_df.iloc[i].lambda_theo selections = lick_idcs_df.iloc[i][3:9].values #Proceed to measure line_data = dz.measure_line(wave, flux, selections, lineslog_df, Measuring_Method='MC_lmfit', store_data=True) except: dz.log_emLine_error(objName, dz.Current_Label) dz.save_lineslog_dataframe(lineslog_df, lines_log_address) print '-', lines_log_address, 'saving' print "\nAll data treated", dz.display_errors('emLine measurement', extra_verbose=True)
try: print '-- Treating line:', lick_idcs_df.iloc[i].name #Establish current line dz.Current_Label = lick_idcs_df.iloc[i].name dz.Current_Ion = lick_idcs_df.iloc[i].Ion dz.Current_TheoLoc = lick_idcs_df.iloc[i].lambda_theo selections = lick_idcs_df.iloc[i][3:9].values #Proceed to measure line_data = dz.measure_line(wave, flux, selections, lineslog_df, Measuring_Method = 'MC_lmfit', store_data = True) except: dz.log_emLine_error(objName, dz.Current_Label) dz.save_lineslog_dataframe(lineslog_df, lines_log_address) print '-', lines_log_address, 'saving' print "\nAll data treated", dz.display_errors('emLine measurement', extra_verbose=True)