Changeset db46d13 in sasview for src/sas/perspectives/fitting


Ignore:
Timestamp:
Mar 1, 2016 7:31:49 PM (9 years ago)
Author:
Paul Kienzle <pkienzle@…>
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:
4adf48e
Parents:
792e6be
Message:

fix 2D barbell model and add it to the fit page

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/perspectives/fitting/models.py

    r415fb82 rdb46d13  
    315315        # regular model names only 
    316316        base_message = "Unable to load model {0}" 
    317         try: 
    318             self.model_name_list = [] 
     317        self.model_name_list = [] 
     318        try: 
    319319            from sas.models.SphereModel import SphereModel 
    320320            self.model_dictionary[SphereModel.__name__] = SphereModel 
     
    529529        except: 
    530530            logging.error(base_message.format(EllipticalCylinderModel.__name__)) 
     531 
     532        try: 
     533            from sas.models.BarBellModel import BarBellModel 
     534 
     535            self.model_dictionary[BarBellModel.__name__] = BarBellModel 
     536            #       self.shape_list.append(BarBellModel) 
     537            self.model_name_list.append(BarBellModel.__name__) 
     538        except: 
     539            logging.error(base_message.format(BarBellModel.__name__)) 
    531540 
    532541        try: 
Note: See TracChangeset for help on using the changeset viewer.