Ignore:
Timestamp:
Mar 20, 2016 3:56:49 AM (8 years ago)
Author:
gonzalezm
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:
105ef92
Parents:
76d905f
Message:

Discover and use python and python+C models added to the user plugin_models folder

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/perspectives/fitting/basepage.py

    rbac3988 rab3ed7e  
    18951895            if mod_cat == custom_model: 
    18961896                for model in self.model_list_box[mod_cat]: 
    1897                     str_m = str(model).split(".")[0] 
     1897                    if 'sasmodels.sasview_model.' in str(model): 
     1898                        str_m = model._model_info['id'] 
     1899                    else: 
     1900                        str_m = str(model).split(".")[0] 
    18981901                    #self.model_box.Append(str_m) 
    18991902                    m_list.append(self.model_dict[str_m]) 
Note: See TracChangeset for help on using the changeset viewer.