Ignore:
File:
1 edited

Legend:

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

    • Property mode changed from 100644 to 100755
    r3b3b40b rb3e8629  
    179179    plugins = {} 
    180180    for filename in os.listdir(directory): 
    181  
    182181        name, ext = os.path.splitext(filename) 
    183182        if ext == '.py' and not name == '__init__': 
     
    185184            try: 
    186185                model = load_custom_model(path) 
    187                 #model.name = PLUGIN_NAME_BASE + model.name 
     186                model.name = PLUGIN_NAME_BASE + model.name 
    188187                plugins[model.name] = model 
    189188            except Exception: 
     
    416415    implement model 
    417416    """ 
    418     def __init__(self): 
    419         self.__modelmanager = ModelManagerBase() 
    420         self.cat_model_list = [self.__modelmanager.model_dictionary[model_name] for model_name \ 
    421                           in list(self.__modelmanager.model_dictionary.keys()) \ 
    422                           if model_name not in list(self.__modelmanager.stored_plugins.keys())] 
    423  
    424         CategoryInstaller.check_install(model_list=self.cat_model_list) 
    425  
     417    __modelmanager = ModelManagerBase() 
     418    cat_model_list = [__modelmanager.model_dictionary[model_name] for model_name \ 
     419                      in list(__modelmanager.model_dictionary.keys()) \ 
     420                      if model_name not in list(__modelmanager.stored_plugins.keys())] 
     421 
     422    CategoryInstaller.check_install(model_list=cat_model_list) 
    426423    def findModels(self): 
    427424        return self.__modelmanager.findModels() 
Note: See TracChangeset for help on using the changeset viewer.