Changeset 0e4e554 in sasview
- 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
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
run.py
r3a39c2e r0e4e554 105 105 addpath(joinpath(root, 'park-1.2.1')) 106 106 107 # sasmodels on the path 108 addpath(joinpath(root, '../sasmodels/')) 109 107 110 # Import the sasview package from root/sasview as sas.sasview. It would 108 111 # be better to just store the package in src/sas/sasview. -
setup.py
r25f223b r0e4e554 260 260 model_dir = os.path.join("src", "sas","models") 261 261 262 if os.path.isdir(wrapper_dir):263 for file in os.listdir(wrapper_dir): 264 file_path = os.path.join(wrapper_dir, file)265 os.remove(file_path)266 else:267 os.makedirs(wrapper_dir)268 sys.path.append(os.path.join("src", "sas", "models", "c_extension", "python_wrapper"))269 from wrapping import generate_wrappers270 generate_wrappers(header_dir = includedir, 271 output_dir = model_dir,272 c_wrapper_dir = wrapper_dir)262 #if os.path.isdir(wrapper_dir): 263 # for file in os.listdir(wrapper_dir): 264 # file_path = os.path.join(wrapper_dir, file) 265 # os.remove(file_path) 266 #else: 267 # os.makedirs(wrapper_dir) 268 #sys.path.append(os.path.join("src", "sas", "models", "c_extension", "python_wrapper")) 269 #from wrapping import generate_wrappers 270 #generate_wrappers(header_dir = includedir, 271 # output_dir = model_dir, 272 # c_wrapper_dir = wrapper_dir) 273 273 274 274 IGNORED_FILES = [".svn"] … … 299 299 model_sources = [] 300 300 append_file(file_list=model_sources, dir_path=igordir) 301 append_file(file_list=model_sources, dir_path=c_model_dir)302 append_file(file_list=model_sources, dir_path=wrapper_dir)301 #append_file(file_list=model_sources, dir_path=c_model_dir) 302 #append_file(file_list=model_sources, dir_path=wrapper_dir) 303 303 304 304 smear_sources = [] … … 319 319 320 320 c_models = [ 321 Extension("sas.models.sas_extension.c_models",322 sources=model_sources,323 include_dirs=[324 igordir, includedir, c_model_dir, numpy_incl_path, cephes_dir325 ],326 ),321 #Extension("sas.models.sas_extension.c_models", 322 # sources=model_sources, 323 # include_dirs=[ 324 # igordir, includedir, c_model_dir, numpy_incl_path, cephes_dir 325 # ], 326 #), 327 327 328 328 # Smearer extension … … 356 356 ext_modules.extend(c_models) 357 357 358 packages.append("sas.models") 358 359 # SasView 359 360 -
src/sas/models/dispersion_models.py
rfd5ac0d r0e4e554 154 154 c_models.set_dispersion_weights(self.cdisp, values, weights) 155 155 156 models = {"gaussian":GaussianDispersion, "rectangula ":RectangleDispersion,156 models = {"gaussian":GaussianDispersion, "rectangular":RectangleDispersion, 157 157 "array":ArrayDispersion, "schulz":SchulzDispersion, 158 158 "lognormal":LogNormalDispersion} -
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.