Ejemplo n.º 1
0
 def get_I(self, folder_path, file_number):
     #Gets I from the list produced in part1.
     w = get_file()
     x = w.get_file_data(folder_path, file_number)
     y = get_data_values()
     y.update_values(x)
     y.print_current()
     for a in y.print_current():
         self.I_values.append(a)
     return self.I_values
Ejemplo n.º 2
0
 def get_I_stand_dev(self, folder_path, file_number):
     #Calcs the Standard deviation/(no. of points av across) of I from the list from part1 as the error.
     w = get_file()
     x = w.get_file_data(folder_path, file_number)
     y = get_data_values()
     y.update_values(x)
     y.print_current_stand_dev()
     for a in y.print_current_stand_dev():
         self.cur_err.append(a)
     return self.cur_err
Ejemplo n.º 3
0
 def get_C_squared(self, folder_path, file_number):
     #Gets C from list from part1, squares each value and adds to a new list to be plotted.
     w = get_file()
     x= w.get_file_data(folder_path, file_number)
     y= get_data_values()
     y.update_values(x)
     capacitance = y.print_capacitance()
     for a in capacitance:
         capacitance_squared = 1/(a*a)
         self.C_squared_values.append(capacitance_squared)
     return(self.C_squared_values)
Ejemplo n.º 4
0
 def get_V(self, folder_path, file_number):
     #Gets V from list produced in part1.
     w = get_file()
     x= w.get_file_data(folder_path, file_number)
     y= get_data_values()
     y.update_values(x)
     voltage = y.print_voltage()
     for a in voltage:
         volt = a
         self.V_values.append(volt)
     return(self.V_values)
Ejemplo n.º 5
0
 def get_C_stand_dev(self, folder_path, file_number):
     #Calcs the C error from the list from part1.
     w = get_file()
     x= w.get_file_data(folder_path, file_number)
     y= get_data_values()
     y.update_values(x)
     capacitance_err = y.print_capacitance_stand_dev()
     for a in capacitance_err:
         cap_err = a
         self.cap_err.append(cap_err)
     return(self.cap_err)
Ejemplo n.º 6
0
 def get_C(self, folder_path, file_number):
     #Gets C from the list produced in part1.
     w = get_file()
     x= w.get_file_data(folder_path, file_number)
     y= get_data_values()
     y.update_values(x)
     capacitance = y.print_capacitance()
     for a in capacitance:
         cap = a
         self.C_values.append(cap)
     return(self.C_values)
Ejemplo n.º 7
0
 def get_C_squared_stand_dev(self, folder_path, file_number):
     #Calcs 1/C2 error
     w = get_file()
     x= w.get_file_data(folder_path, file_number)
     y= get_data_values()
     y.update_values(x)
     capacitance_err = y.print_capacitance_stand_dev()
     capacitance = y.print_capacitance()
     for i in range(0, len(capacitance_err)):
         cap_sq_err1 = 2*(capacitance_err[i]*capacitance[i])
         self.cap_sq_err.append(cap_sq_err1)
     return(self.cap_sq_err)