Changeset cb4ef58 in sasview for src/sas/sasgui/perspectives/fitting/models.py
- Timestamp:
- Apr 13, 2016 9:23:07 AM (9 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, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 16b769b
- Parents:
- fa4ea80
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/perspectives/fitting/models.py
rdcdca68 rcb4ef58 296 296 #Build list automagically from sasmodels package 297 297 for model in load_standard_models(): 298 self.model_dictionary[model. _model_info['name']] = model299 if model. _model_info['structure_factor'] == True:298 self.model_dictionary[model.name] = model 299 if model.is_structure_factor: 300 300 self.struct_list.append(model) 301 if model._model_info['variant_info'] is not None: 301 if model.is_form_factor: 302 self.multiplication_factor.append(model) 303 if model.is_multiplicity_model: 302 304 self.multi_func_list.append(model) 303 305 else: 304 self.model_name_list.append(model._model_info['name']) 305 if model._model_info['ER'] is not None: 306 self.multiplication_factor.append(model) 306 self.model_name_list.append(model.name) 307 307 308 308 #Looking for plugins … … 387 387 Get the multifunctional models 388 388 """ 389 for item in self.plugins: 390 try: 391 # check the multiplicity if any 392 if item.multiplicity_info[0] > 1: 393 self.multi_func_list.append(item) 394 except: 395 # pass to other items 396 pass 389 items = [item for item in self.plugins if item.is_multiplicity_model] 390 self.multi_func_list = items 397 391 398 392 def get_model_list(self):
Note: See TracChangeset
for help on using the changeset viewer.