def save_model(self): thick=[] mat_file=[] dos_file=[] pl_file=[] name=[] for item in self.model: name.append(item[COLUMN_NAME]) thick.append(item[COLUMN_THICKNES]) mat_file.append(item[COLUMN_MATERIAL]) dos_file.append(item[COLUMN_DOS_LAYER]) pl_file.append(item[COLUMN_PL_FILE]) epitaxy_load_from_arrays(name,thick,mat_file,dos_file,pl_file) epitaxy_save() self.sync_to_electrical_mesh()
def save_model(self): thick=[] mat_file=[] dos_file=[] pl_file=[] name=[] for i in range(0,self.tab.rowCount()): name.append(str(tab_get_value(self.tab,i, 0))) thick.append(str(tab_get_value(self.tab,i, 1))) mat_file.append(str(tab_get_value(self.tab,i, 2))) dos_file.append(str(tab_get_value(self.tab,i, 4))) pl_file.append(str(tab_get_value(self.tab,i, 5))) ret=epitaxy_load_from_arrays(name,thick,mat_file,dos_file,pl_file) if ret==False: error_dlg(self,_("Error in epitaxy, check the input values.")) epitaxy_save() self.clean_dos_files()
def save_model(self): thick = [] mat_file = [] dos_file = [] pl_file = [] name = [] for i in range(0, self.tab.rowCount()): name.append(str(tab_get_value(self.tab, i, 0))) thick.append(str(tab_get_value(self.tab, i, 1))) mat_file.append(str(tab_get_value(self.tab, i, 2))) dos_file.append(str(tab_get_value(self.tab, i, 4))) pl_file.append(str(tab_get_value(self.tab, i, 5))) ret = epitaxy_load_from_arrays(name, thick, mat_file, dos_file, pl_file) if ret == False: error_dlg(self, _("Error in epitaxy, check the input values.")) epitaxy_save(get_sim_path()) self.clean_dos_files() epitaxy_mesh_update()