Changeset e92a352 in sasview for src/sas/sasgui/perspectives/fitting
- Timestamp:
- Feb 5, 2017 8:47:14 PM (8 years ago)
- Branches:
- master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 11b094f
- Parents:
- 2ab9c432
- Location:
- src/sas/sasgui/perspectives/fitting
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/perspectives/fitting/basepage.py
r505706a re92a352 55 55 class BasicPage(ScrolledPanel, PanelBase): 56 56 """ 57 This class provide general structure of fitpanel page57 This class provide general structure of the fitpanel page 58 58 """ 59 59 # Internal name for the AUI manager … … 677 677 def _copy_info(self, flag): 678 678 """ 679 Send event d pemding on flag680 681 : Param flag: flag that distinguish event679 Send event depending on flag 680 681 : Param flag: flag that distinguishes the event 682 682 """ 683 683 # messages depending on the flag … … 1116 1116 :precondition: the page is already drawn or created 1117 1117 1118 :postcondition: the state of the underlying data change as well as the1118 :postcondition: the state of the underlying data changes as well as the 1119 1119 state of the graphic interface 1120 1120 """ … … 1342 1342 def _selectDlg(self): 1343 1343 """ 1344 open a dialog file to select ed the customized dispersity1344 open a dialog file to select the customized polydispersity function 1345 1345 """ 1346 1346 if self.parent is not None: … … 1764 1764 def _set_multfactor_combobox(self, multiplicity=10): 1765 1765 """ 1766 Set comboBox for mu itfactor of CoreMultiShellModel1766 Set comboBox for multitfactor of CoreMultiShellModel 1767 1767 :param multiplicit: no. of multi-functionality 1768 1768 """ … … 1802 1802 Fill panel's combo box according to the type of model selected 1803 1803 """ 1804 custom_model = ' CustomizedModels'1804 custom_model = 'Plugin Models' 1805 1805 mod_cat = self.categorybox.GetStringSelection() 1806 1806 self.structurebox.SetSelection(0) … … 3457 3457 fills out the category list box 3458 3458 """ 3459 uncat_str = ' CustomizedModels'3459 uncat_str = 'Plugin Models' 3460 3460 self._read_category_info() 3461 3461 … … 3486 3486 self.model_box.Clear() 3487 3487 3488 if category == ' CustomizedModels':3488 if category == 'Plugin Models': 3489 3489 for model in self.model_list_box[category]: 3490 3490 str_m = str(model).split(".")[0] -
src/sas/sasgui/perspectives/fitting/fitting.py
r73cbeec re92a352 225 225 226 226 self.id_edit = wx.NewId() 227 editmodel_help = "Edit customized model sample file"228 227 self.menu1.AppendMenu(self.id_edit, "Plugin Model Operations", 229 self.edit_model_menu , editmodel_help)228 self.edit_model_menu) 230 229 #create menubar items 231 230 return [(self.menu1, self.sub_menu)] … … 260 259 self.update_custom_combo() 261 260 if os.path.isfile(p_path): 262 msg = "Sorry! Could not beable to delete the default "263 msg += " custommodel... \n"261 msg = "Sorry! unable to delete the default " 262 msg += "plugin model... \n" 264 263 msg += "Please manually remove the files (.py, .pyc) " 265 264 msg += "in the 'plugin_models' folder \n" … … 274 273 if item.GetLabel() == label: 275 274 self.edit_menu.DeleteItem(item) 276 msg = "The custommodel, %s, has been deleted." % label275 msg = "The plugin model, %s, has been deleted." % label 277 276 evt = StatusEvent(status=msg, type='stop', info='info') 278 277 wx.PostEvent(self.parent, evt) … … 331 330 temp = self.fit_panel.reset_pmodel_list() 332 331 if temp: 333 # Set the new custommodel list for all fit pages332 # Set the new plugin model list for all fit pages 334 333 for uid, page in self.fit_panel.opened_pages.iteritems(): 335 334 if hasattr(page, "formfactorbox"): -
src/sas/sasgui/perspectives/fitting/models.py
r313c5c9 re92a352 324 324 self.plugins.append(plug) 325 325 self.model_dictionary[name] = plug 326 self.model_combobox.set_list(" CustomizedModels", self.plugins)326 self.model_combobox.set_list("Plugin Models", self.plugins) 327 327 return self.model_combobox.get_list() 328 328 else: … … 345 345 self.model_dictionary[name] = plug 346 346 347 self.model_combobox.reset_list(" CustomizedModels", self.plugins)347 self.model_combobox.reset_list("Plugin Models", self.plugins) 348 348 return self.model_combobox.get_list() 349 349 … … 388 388 # self.shape_indep_list) 389 389 self.model_combobox.set_list("Structure Factors", self.struct_list) 390 self.model_combobox.set_list(" CustomizedModels", self.plugins)390 self.model_combobox.set_list("Plugin Models", self.plugins) 391 391 self.model_combobox.set_list("P(Q)*S(Q)", self.multiplication_factor) 392 392 self.model_combobox.set_list("multiplication",
Note: See TracChangeset
for help on using the changeset viewer.