pCO2_bg = 4 "data clipping necesary?" clip = False sigma = 3 """starting and ending data line to include""" win_start = 0 #counted from beginning of file. First value = 0 win_end = 6000 #counted from the back of file. Last value = 1 """ Main Program """ """load files if not yet loaded and make a safety copy.""" if 'tdms_file_path_626' not in globals( ) or tdms_file_path_626_new != tdms_file_path_626: tdms_file_path_626 = tdms_file_path_626_new tdms_file_626 = tdmsProcFuncs.readtdmsfile(tdms_file_path_626) tdms_file_CO2_626 = copy.deepcopy(tdms_file_626) if 'tdms_file_path_636' not in globals( ) or tdms_file_path_636_new != tdms_file_path_636: tdms_file_path_636 = tdms_file_path_636_new tdms_file_636 = tdmsProcFuncs.readtdmsfile(tdms_file_path_636) tdms_file_CO2_636 = copy.deepcopy(tdms_file_636) if 'tdms_file_path_bg' not in globals( ) or tdms_file_path_bg_new != tdms_file_path_bg: tdms_file_path_bg = tdms_file_path_bg_new tdms_file_bg = tdmsProcFuncs.readtdmsfile(tdms_file_path_bg) tdms_file_CO2_bg = copy.deepcopy(tdms_file_bg) """find group and channel names (i.e. "Fit Results" and "Line 1Amplitude, respectively) via tdms_file.objects. Then access them as follows"""
#parlist.append([["Vici Valve Pos DAQVal"],[False]])#5 #parlist.append([["p Turbo DAQVal"],[False]])#6 #parlist.append([["Cell Entry Valve DAQVal"],[False]])#7 #parlist.append([["ByPass Valve DAQVal"],[False]])#8 #parlist.append([["Turbo Valve DAQVal"],[False]])#9 par_ind = 0 ind_start = 0 ind_end = -1 """ Main Program """ """load file if not yet loaded and make a safety copy.""" if 'tdms_file_path' not in globals() or tdms_file_path_new != tdms_file_path: tdms_file_path = tdms_file_path_new tdms_file = tdmsProcFuncs.readtdmsfile(tdms_file_path) tdms_file_mon = copy.deepcopy(tdms_file) """find group and channel names (i.e. "Fit Results" and "Line 1Amplitude, respectively) via tdms_file.objects. Then access them as follows""" """Time Stamp""" timeStamp_mon_orig = tdms_file.object("Monitoring Values", "t-stamp").data #timeStamp_fit_orig = tdms_file.object("Fit Results" , "t-stamp").data """Transform TimeStamp into seconds after start""" timeStamp_mon = tdmsProcFuncs.TimeStampTransform(timeStamp_mon_orig) #timeStamp_fit = tdmsProcFuncs.TimeStampTransform(timeStamp_fit_orig) """Unpack parameter values and transform to temperature where necessary""" parvalues = [] for x in range(len(parlist)): parvalues.append( tdms_file.object("Monitoring Values", *parlist[x][0]).data) if parlist[x][1] == [True]:
pCO2_bg = 4 "data clipping necesary?" clip = False sigma = 5 """starting and ending data line to include""" win_start = 0 #counted from beginning of file. First value = 0 win_end = 1 #counted from the back of file. Last value = 1 """ Main Program """ """load files if not yet loaded and make a safety copy.""" if 'tdms_file_path_CH4' not in globals( ) or tdms_file_path_CH4_new != tdms_file_path_CH4: tdms_file_path_CH4 = tdms_file_path_CH4_new tdms_file_CH4 = tdmsProcFuncs.readtdmsfile(tdms_file_path_CH4) tdms_file_CH4_copy = copy.deepcopy(tdms_file_CH4) if 'tdms_file_path_N2O' not in globals( ) or tdms_file_path_N2O_new != tdms_file_path_N2O: tdms_file_path_N2O = tdms_file_path_N2O_new tdms_file_N2O = tdmsProcFuncs.readtdmsfile(tdms_file_path_N2O) tdms_file_N2O_copy = copy.deepcopy(tdms_file_N2O) if 'tdms_file_path_626' not in globals( ) or tdms_file_path_626_new != tdms_file_path_626: tdms_file_path_626 = tdms_file_path_626_new tdms_file_626 = tdmsProcFuncs.readtdmsfile(tdms_file_path_626) tdms_file_CO2_626 = copy.deepcopy(tdms_file_626) if 'tdms_file_path_636' not in globals(