Changeset 0e4e554 in sasview for src/sas/perspectives
- Timestamp:
- Feb 18, 2015 9:48:12 AM (10 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:
- dea7cb4
- Parents:
- 6f82ba1
- Location:
- src/sas/perspectives/fitting
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/perspectives/fitting/basepage.py
r6e653582 r0e4e554 1196 1196 state.disp_cb_dict[item]) 1197 1197 # 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 1199 1200 disp_model = ArrayDispersion() 1200 1201 if hasattr(state, "values") and \ … … 1463 1464 if disp.__class__.__name__ == 'str': 1464 1465 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 " 1466 1468 com_str += "import %s as disp_func \ndisp_model = disp_func()" 1467 1469 exec com_str % disp … … 2655 2657 self.weights = {} 2656 2658 2657 from sas.models.dispersion_models import GaussianDispersion 2659 #from sas.models.dispersion_models import GaussianDispersion 2660 from sasmodels.weights import GaussianDispersion 2658 2661 if len(self.disp_cb_dict) == 0: 2659 2662 self.save_current_state() -
src/sas/perspectives/fitting/fitpage.py
r22ae2f7 r0e4e554 608 608 model_disp = wx.StaticText(self, -1, 'Function') 609 609 CHECK_STATE = self.cb1.GetValue() 610 import sas.models.dispersion_models 611 self.polydisp = sas.models.dispersion_models.models 610 #import sas.models.dispersion_models 611 #self.polydisp = sas.models.dispersion_models.models 612 import sasmodels.weights 613 self.polydisp = sasmodels.weights.models 612 614 613 615 ix = 0 -
src/sas/perspectives/fitting/models.py
r6f82ba1 r0e4e554 20 20 from sas.models.BaseComponent import BaseComponent 21 21 from sas.guiframe.CategoryInstaller import CategoryInstaller 22 23 from sasmodels.sasview_model import make_class 22 24 23 25 PLUGIN_DIR = 'plugin_models' … … 310 312 311 313 # regular model names only 312 try: 313 self.model_name_list = [] 314 from sas.models.SphereModel import SphereModel 314 self.model_name_list = [] 315 try: 316 # from sas.models.SphereModel import SphereModel 317 from sasmodels.models import sphere 318 SphereModel = make_class(sphere, dtype='single') 315 319 self.model_dictionary[SphereModel.__name__] = SphereModel 316 320 # self.shape_list.append(SphereModel)
Note: See TracChangeset
for help on using the changeset viewer.