Ignore:
Timestamp:
Feb 18, 2015 9:48:12 AM (9 years ago)
Author:
ajj
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:
dea7cb4
Parents:
6f82ba1
Message:

start switching to sasmodels including dispersion

File:
1 edited

Legend:

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

    r6e653582 r0e4e554  
    11961196                                                    state.disp_cb_dict[item]) 
    11971197                        # Create the dispersion objects 
    1198                         from sas.models.dispersion_models import ArrayDispersion 
     1198                        #from sas.models.dispersion_models import ArrayDispersion 
     1199                        from sasmodels.weights import ArrayDispersion 
    11991200                        disp_model = ArrayDispersion() 
    12001201                        if hasattr(state, "values") and \ 
     
    14631464            if disp.__class__.__name__ == 'str': 
    14641465                disp_model = None 
    1465                 com_str = "from sas.models.dispersion_models " 
     1466                #com_str = "from sas.models.dispersion_models " 
     1467                com_str = "from sasmodels.weights " 
    14661468                com_str += "import %s as disp_func \ndisp_model = disp_func()" 
    14671469                exec com_str % disp 
     
    26552657        self.weights = {} 
    26562658       
    2657         from sas.models.dispersion_models import GaussianDispersion 
     2659        #from sas.models.dispersion_models import GaussianDispersion 
     2660        from sasmodels.weights import GaussianDispersion 
    26582661        if len(self.disp_cb_dict) == 0: 
    26592662            self.save_current_state() 
Note: See TracChangeset for help on using the changeset viewer.