Changeset 212bfc2 in sasview for src/sas/sasgui/perspectives
- Timestamp:
- Oct 7, 2016 5:11:40 PM (8 years ago)
- 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, costrafo411, 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:
- 60df6c1
- Location:
- src/sas/sasgui/perspectives/fitting
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/perspectives/fitting/basepage.py
r4c3be25 r212bfc2 3447 3447 self.by_model_dict = defaultdict(list) 3448 3448 self.model_enabled_dict = defaultdict(bool) 3449 3450 try: 3451 categorization_file = CategoryInstaller.get_user_file() 3452 if not os.path.isfile(categorization_file): 3453 categorization_file = CategoryInstaller.get_default_file() 3454 cat_file = open(categorization_file, 'rb') 3455 self.master_category_dict = json.load(cat_file) 3456 self._regenerate_model_dict() 3457 cat_file.close() 3458 except IOError: 3459 raise 3460 print 'Problem reading in category file.' 3461 print 'We even looked for it, made sure it was there.' 3462 print 'An existential crisis if there ever was one.' 3449 categorization_file = CategoryInstaller.get_user_file() 3450 with open(categorization_file, 'rb') as f: 3451 self.master_category_dict = json.load(f) 3452 self._regenerate_model_dict() 3463 3453 3464 3454 def _regenerate_model_dict(self): -
src/sas/sasgui/perspectives/fitting/models.py
r6fb559d r212bfc2 412 412 """ 413 413 __modelmanager = ModelManagerBase() 414 cat_model_list = [ model_namefor model_name \414 cat_model_list = [__modelmanager.model_dictionary[model_name] for model_name \ 415 415 in __modelmanager.model_dictionary.keys() \ 416 416 if model_name not in __modelmanager.stored_plugins.keys()]
Note: See TracChangeset
for help on using the changeset viewer.