Changeset 1bcc48d in sasview for src/sas/sasgui


Ignore:
Timestamp:
Apr 8, 2017 9:14:48 AM (8 years ago)
Author:
Adam Washington <adam.washington@…>
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, 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:
132f3d6
Parents:
dab94f6
git-author:
Adam Washington <adam.washington@…> (04/08/17 09:08:10)
git-committer:
Adam Washington <adam.washington@…> (04/08/17 09:14:48)
Message:

Work around namespace bug

Location:
src/sas/sasgui/perspectives/fitting
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/perspectives/fitting/fitpage.py

    rd85f1d8a r1bcc48d  
    12391239            mod_cat = self.categorybox.GetStringSelection() 
    12401240            if mod_cat == custom_model: 
     1241                ################This is where the model dies############### 
     1242                temp_id = self.model.id 
    12411243                temp = self.parent.update_model_list() 
     1244                for v in self.parent.model_dictionary.values(): 
     1245                    if v.id == temp_id: 
     1246                        self.model = v() 
    12421247                if temp: 
    12431248                    self.model_list_box = temp 
  • src/sas/sasgui/perspectives/fitting/models.py

    r11b094f r1bcc48d  
    321321        if len(new_plugins) > 0: 
    322322            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 
     323                self.stored_plugins[name] = plug 
     324                self.plugins.append(plug) 
     325                self.model_dictionary[name] = plug 
    327326            self.model_combobox.set_list("Plugin Models", self.plugins) 
    328327            return self.model_combobox.get_list() 
Note: See TracChangeset for help on using the changeset viewer.