Changeset 05b8e01 in sasview for src


Ignore:
Timestamp:
Apr 10, 2017 12:06:17 PM (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:
b61bd57
Parents:
7143065
Message:

Remove magic string from models.py

File:
1 edited

Legend:

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

    r49c46da r05b8e01  
    1818from sas.sasgui.guiframe.CategoryInstaller import CategoryInstaller 
    1919from sasmodels.sasview_model import load_custom_model, load_standard_models 
     20from sas.sasgui.perspectives.fitting.fitpage import CUSTOM_MODEL 
    2021 
    2122 
     
    327328                self.plugins.append(plug) 
    328329                self.model_dictionary[name] = plug 
    329             self.model_combobox.set_list("Plugin Models", self.plugins) 
     330            self.model_combobox.set_list(CUSTOM_MODEL, self.plugins) 
    330331            return self.model_combobox.get_list() 
    331332        else: 
Note: See TracChangeset for help on using the changeset viewer.