Example #1
0
def calibrate(reck_heaters, calib, heater_name, heater_index, input, outputs,
              minV, maxV, N, int_time, counting):

    metadata = {
        'label': 'Fringe Sweep',
        'Counting Device': counting,
        'heater': (heater_index, heater_name),
        'Input': input,
        'Outputs': outputs,
        'Int_time': int_time,
        'MinV': minV,
        'MaxV': maxV
    }

    if counting == 'cc':
        datafilename = take_fringe(reck_heaters, heater_index, minV, maxV, N,
                                   int_time, metadata)
    elif counting == 'pm':
        datafilename = pm_take_fringe(reck_heaters, heater_index, minV, maxV,
                                      N, int_time, metadata)

    data_for_fitting = parse(datafilename, outputs)

    voltages = np.linspace(minV, maxV, N)
    #calib.datafilename = data_for_fitting
    calib.fit(heater_index, voltages, data_for_fitting, graph=True)
def calibrate(reck_heaters, calib, heater_name, heater_index, input, outputs):
	
	datafilename = take_fringe(reck_heaters, heater_index)
	
	data_for_fitting = load_data(datafilename,outputs)
	
	calib.datafilename = data_for_fitting
	calib.fit(heatername)
def calibrate(reck_heaters, calib, heater_name, heater_index, input, outputs, minV, maxV, N, int_time, counting):

    metadata={'label':'Fringe Sweep', 'Counting Device': counting, 'heater': (heater_index, heater_name), 'Input': input, 'Outputs': outputs, 'Int_time': int_time, 'MinV': minV, 'MaxV': maxV}
    
    if counting == 'cc': 
        datafilename = take_fringe(reck_heaters, heater_index, minV, maxV, N, int_time, metadata)
    elif counting == 'pm':
        datafilename = pm_take_fringe(reck_heaters, heater_index, minV, maxV, N, int_time, metadata)
    
    data_for_fitting = parse(datafilename,outputs)



    voltages = np.linspace(minV, maxV, N)
    #calib.datafilename = data_for_fitting
    calib.fit(heater_index, voltages, data_for_fitting, graph = True)