Changes in / [527a190:84657f7] in sasview
- Location:
- src/sas/sasgui/perspectives/fitting
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/perspectives/fitting/fitpage.py
rd85f1d8a r6d3c4e7 1236 1236 wx.PostEvent(self.parent, new_event) 1237 1237 # update list of plugins if new plugin is available 1238 custom_model = CUSTOM_MODEL1239 1238 mod_cat = self.categorybox.GetStringSelection() 1240 if mod_cat == custom_model: 1239 if mod_cat == CUSTOM_MODEL: 1240 temp_id = self.model.id 1241 1241 temp = self.parent.update_model_list() 1242 for v in self.parent.model_dictionary.values(): 1243 if v.id == temp_id: 1244 self.model = v() 1242 1245 if temp: 1243 1246 self.model_list_box = temp -
src/sas/sasgui/perspectives/fitting/models.py
re92a352 red28d8c 319 319 """ 320 320 new_plugins = self.findModels() 321 if len(new_plugins) > 0: 322 for name, plug in new_plugins.iteritems(): 323 if name not in self.stored_plugins.keys(): 324 self.stored_plugins[name] = plug 325 self.plugins.append(plug) 326 self.model_dictionary[name] = plug 321 if new_plugins: 322 for name, plug in new_plugins.items(): 323 self.stored_plugins[name] = plug 324 self.plugins.append(plug) 325 self.model_dictionary[name] = plug 327 326 self.model_combobox.set_list("Plugin Models", self.plugins) 328 327 return self.model_combobox.get_list()
Note: See TracChangeset
for help on using the changeset viewer.