def go_Conti(self): self.GetExcelList() for f_name_path in self.files_path: self.ReadSheetNames(f_name_path) self.FilterSheetName('Cont') if self.sheetname == None: continue db = self.ReadExcelData_Conti() DBProcess(self.dbpath).Trans2db_Conti(db) print(f_name_path + ' ContinueTorque is finished!')
def go_WindingHeating(self): self.GetExcelList() for f_name_path in self.files_path: self.ReadSheetNames(f_name_path) self.FilterSheetName('Heating') if self.sheetname == None: continue db = self.ReadExcelData_WindingHeating() DBProcess(self.dbpath).Trans2db_WindingHeating(db) print(f_name_path + ' windingheating is finished!')
def go_BEMF(self): self.GetExcelList() for f_name_path in self.files_path: self.ReadSheetNames(f_name_path) self.FilterSheetName('BEMF') if self.sheetname == None: continue db, namelist, valuelist = self.ReadExcelData_BEMF() DBProcess(self.dbpath).Trans2db_BEMF(db, namelist, valuelist) print(f_name_path + ' BEMF is finished!')
def go_DUT(self): self.GetExcelList() for f_name_path in self.files_path: self.ReadSheetNames(f_name_path) self.FilterSheetName('DUT') if self.sheetname == None: continue db = self.ReadExcelData_DUT() DBProcess(self.dbpath).Trans2db_DUT(db) print(f_name_path + ' DUT Description is finished!')
def go_Parameter(self): self.GetExcelList() for f_name_path in self.files_path: self.ReadSheetNames(f_name_path) self.FilterSheetName('Parameters') if self.sheetname == None: continue db = self.ReadExcelData_Para() DBProcess(self.dbpath).Trans2db_Para(db) print(f_name_path + ' Para is finished!')
def go_HighSpeed(self): self.GetExcelList() for f_name_path in self.files_path: self.ReadSheetNames(f_name_path) self.FilterSheetName('High Speed') if self.sheetname == None: continue db = self.ReadExcelData_highspeed() DBProcess(self.dbpath).Trans2db_highspeed(db) print(f_name_path + ' highspeed is finished!')