Changeset 87c722e in sasmodels
- Timestamp:
- Feb 13, 2015 4:37:09 PM (10 years ago)
- Branches:
- master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- f5b9a6b
- Parents:
- be802cb
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
README.rst
r5d3d7b4 r87c722e 16 16 rod-like shape. 17 17 18 The data is loaded by sa ns.dataloader from the sasview package, so sasview18 The data is loaded by sas.dataloader from the sasview package, so sasview 19 19 is needed to run the example. 20 20 -
compare.py
r216a9e1 r87c722e 20 20 modelname, pars = revert_model(modelname, pars) 21 21 #print "new",sorted(pars.items()) 22 sa ns = __import__('sans.models.'+modelname)23 ModelClass = getattr(getattr(sa ns.models,modelname,None),modelname,None)22 sas = __import__('sas.models.'+modelname) 23 ModelClass = getattr(getattr(sas.models,modelname,None),modelname,None) 24 24 if ModelClass is None: 25 raise ValueError("could not find model %r in sa ns.models"%modelname)25 raise ValueError("could not find model %r in sas.models"%modelname) 26 26 model = ModelClass() 27 27 … … 423 423 return 'triaxial_ellipsoid', pars 424 424 425 @model('sphpy') 426 def spherepy(): 427 pars = dict( 428 scale=1, background=0, 429 sld=6, solvent_sld=1, 430 radius=120, 431 radius_pd=.2, radius_pd_n=45, 432 ) 433 return 'spherepy', pars 434 425 435 @model('sph') 426 436 def sphere(): -
sasmodels/bumps_model.py
r31819c5 r87c722e 46 46 Load data using a sasview loader. 47 47 """ 48 from sa ns.dataloader.loader import Loader48 from sas.dataloader.loader import Loader 49 49 loader = Loader() 50 50 data = loader.load(filename) … … 61 61 """ 62 62 63 from sa ns.dataloader.data_info import Data1D63 from sas.dataloader.data_info import Data1D 64 64 65 65 Iq = 100*np.ones_like(q) … … 79 79 Resolution dq/q is 5%. 80 80 """ 81 from sa ns.dataloader.data_info import Data2D, Detector81 from sas.dataloader.data_info import Data2D, Detector 82 82 83 83 if qy is None: … … 123 123 Add a beam stop of the given *radius*. If *outer*, make an annulus. 124 124 """ 125 from sa ns.dataloader.manipulations import Ringcut125 from sas.dataloader.manipulations import Ringcut 126 126 if hasattr(data, 'qx_data'): 127 127 data.mask = Ringcut(0, radius)(data) … … 138 138 Select half of the data, either "right" or "left". 139 139 """ 140 from sa ns.dataloader.manipulations import Boxcut140 from sas.dataloader.manipulations import Boxcut 141 141 if half == 'right': 142 142 data.mask += Boxcut(x_min=-np.inf, x_max=0.0, y_min=-np.inf, y_max=np.inf)(data) … … 149 149 Chop the top off the data, above *max*. 150 150 """ 151 from sa ns.dataloader.manipulations import Boxcut151 from sas.dataloader.manipulations import Boxcut 152 152 data.mask += Boxcut(x_min=-np.inf, x_max=np.inf, y_min=-np.inf, y_max=max)(data) 153 153 -
sasmodels/dll.py
rdf4dc86 r87c722e 23 23 #COMPILE = "cl /nologo /Ox /MD /W3 /GS- /DNDEBUG /Tp%(source)s /link /DLL /INCREMENTAL:NO /MANIFEST /OUT:%(output)s" 24 24 COMPILE = "cl /nologo /Ox /MD /W3 /GS- /DNDEBUG /Tp%(source)s /openmp /link /DLL /INCREMENTAL:NO /MANIFEST /OUT:%(output)s" 25 #/MANIFESTFILE:build\temp.win32-2.7\Release\src\sans\models\c_extension\libigor\c_models.pyd.manifest26 25 #COMPILE = "gcc -shared -fPIC -std=c99 -fopenmp -O2 -Wall %(source)s -o %(output)s -lm" 27 26 else: -
sasmodels/sasview_model.py
r87985ca r87c722e 91 91 self.output_unit = model.info.get("output_unit","cm^{-1}") 92 92 93 ## _persistency_dict is used by sa ns.perspectives.fitting.basepage93 ## _persistency_dict is used by sas.perspectives.fitting.basepage 94 94 ## to store dispersity reference. 95 95 ## TODO: _persistency_dict to persistency_dict throughout sasview
Note: See TracChangeset
for help on using the changeset viewer.