Changeset 125c4be in sasview


Ignore:
Timestamp:
Jun 9, 2017 4:35:37 AM (8 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
Branches:
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
Children:
2d0e0c1
Parents:
8eaa101
Message:

Allow rebuilding of the categories file and plugin_models dir

Location:
src/sas/qtgui
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Perspectives/Fitting/FittingPerspective.py

    rdc5ef15 r125c4be  
    77 
    88from sas.qtgui.Perspectives.Fitting.FittingWidget import FittingWidget 
     9from sas.qtgui.Perspectives.Fitting import ModelUtilities 
    910 
    1011class FittingWindow(QtGui.QTabWidget): 
     
    4344        # Perspective window not allowed to close by default 
    4445        self._allow_close = False 
     46 
     47        self.menu_manager = ModelUtilities.ModelManager() 
     48        # TODO: reuse these in FittingWidget properly 
     49        self.model_list_box = self.menu_manager.get_model_list() 
     50        self.model_dictionary = self.menu_manager.get_model_dictionary() 
    4551 
    4652        self.setWindowTitle('Fit panel - Active Fitting Optimizer: %s' % self.optimizer) 
  • src/sas/qtgui/Utilities/CategoryInstaller.py

    rdc5ef15 r125c4be  
    3535        return sas.sascalc.dataloader.readers.get_data_path() 
    3636 
    37     #@staticmethod 
    38     #def _get_models_py_dir(): 
    39     #    """ 
    40     #    returns the dir where models.py should be 
    41     #    """ 
    42     #    import sas.sasgui.perspectives.fitting.models 
    43     #    return sas.sasgui.perspectives.fitting.models.get_model_python_path() 
     37    @staticmethod 
     38    def _get_models_py_dir(): 
     39        """ 
     40        returns the dir where models.py should be 
     41        """ 
     42        import sas.sasgui.perspectives.fitting.models 
     43        return sas.sasgui.perspectives.fitting.models.get_model_python_path() 
    4444 
    4545    @staticmethod 
Note: See TracChangeset for help on using the changeset viewer.