Changes in / [d3b57a0:4a0d3197] in sasview
- Location:
- src/sas
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/MainWindow/GuiManager.py
rc889a3e rfa05c6c1 65 65 # Add signal callbacks 66 66 self.addCallbacks() 67 68 # Assure model categories are available69 self.addCategories()70 67 71 68 # Create the data manager … … 145 142 self.ResolutionCalculator = ResolutionCalculatorPanel(self) 146 143 self.DataOperation = DataOperationUtilityPanel(self) 147 148 def addCategories(self):149 """150 Make sure categories.json exists and if not compile it and install in ~/.sasview151 """152 try:153 from sas.sascalc.fit.models import ModelManager154 from sas.qtgui.Utilities.CategoryInstaller import CategoryInstaller155 model_list = ModelManager().cat_model_list()156 CategoryInstaller.check_install(model_list=model_list)157 except Exception:158 logger.error("%s: could not load SasView models")159 logger.error(traceback.format_exc())160 144 161 145 def statusBarSetup(self): -
src/sas/qtgui/Utilities/CategoryInstaller.py
rc889a3e rcee5c78 174 174 model_enabled_dict) 175 175 176 json.dump(master_category_dict, open(serialized_file, "w", encoding="utf8"))176 json.dump(master_category_dict, open(serialized_file, 'wb')) 177 177 -
src/sas/sascalc/fit/models.py
rc889a3e rfa81e94 181 181 try: 182 182 model = load_custom_model(path) 183 # TODO: add [plug-in] tag to model name in sasview_model 184 if not model.name.startswith(PLUGIN_NAME_BASE): 185 model.name = PLUGIN_NAME_BASE + model.name 183 186 plugins[model.name] = model 184 187 except Exception:
Note: See TracChangeset
for help on using the changeset viewer.