Changes in / [0a33675:0656250] in sasmodels
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
example/sesansfit.py
r0a33675 r33d38d5 12 12 from sas.dataloader.loader import Loader 13 13 loader=Loader() 14 <<<<<<< HEAD 15 data=loader.load('se008724_01.ses') 16 # data=loader.load('testsasview1.ses') 17 18 ======= 14 19 filename = 'testsasview1.ses' 15 20 data=loader.load(filename) 16 21 if data is None: raise IOError("Could not load file %r"%(filename,)) 17 22 print dir(data), type(data) 23 >>>>>>> 0a33675f5dfe63dcfc7345913a0bb44858641acc 18 24 data.x /=10 19 25 # print data 20 26 # data = load_sesans('mydatfile.pz') 21 27 # sans_data = load_sans('mysansfile.xml') … … 47 53 model = bumps_model.BumpsModel(data, kernel, 48 54 scale=phi*(1-phi), sld=7.0, solvent_sld=1.0, radius=radius) 49 phi.range(0.001,0. 90)55 phi.range(0.001,0.5) 50 56 #model.radius.pmp(40) 51 model.radius.range(1 00,10000)52 #model.sld.pm p(5)57 model.radius.range(1,10000) 58 #model.sld.pm(5) 53 59 #model.background 54 60 #model.radius_pd=0 -
sasmodels/bumps_model.py
raa4946b r33d38d5 218 218 plt.errorbar(data.x, data.y, yerr=data.dy) 219 219 plt.plot(data.x, theory, '-', hold=True) 220 plt.xlabel('spin echo length ( A)')221 plt.ylabel('polarization ')220 plt.xlabel('spin echo length (nm)') 221 plt.ylabel('polarization (P/P0)') 222 222 plt.subplot(122) 223 223 plt.plot(data.x, resid, 'x') 224 plt.xlabel('spin echo length ( A)')225 plt.ylabel('residuals ')224 plt.xlabel('spin echo length (nm)') 225 plt.ylabel('residuals (P/P0)') 226 226 227 227 def _plot_result2D(data, theory, view):
Note: See TracChangeset
for help on using the changeset viewer.